Skip to content

Commit d161bf4

Browse files
committed
multiple iters, hollow region
1 parent 0dd3e12 commit d161bf4

8 files changed

+122808
-61
lines changed

anchors.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,13 @@ vector<vector<int>> anchor_points(HalfedgeDS he, MatrixXi R, MatrixXd V, MatrixX
167167
if (vertex_proxies[i].size()>2) {
168168
for(size_t m = 0; m < vertex_proxies[i].size(); m++) {
169169
r = vertex_proxies[i][m];
170-
if (seen(r)==0) {
171-
seen(r)=1;
172-
polys_anchors[r] = find_anchors_on_region(he,i,r,R,anchors);
170+
// if (seen(r)==0) {
171+
// seen(r)=1;
172+
// polys_anchors[r] = find_anchors_on_region(he,i,r,R,anchors);
173+
// }
174+
if (!vector_contains(polys_anchors[r],i)) {
175+
vector<int> new_anchors = find_anchors_on_region(he,i,r,R,anchors);
176+
polys_anchors[r].insert( polys_anchors[r].end(), new_anchors.begin(), new_anchors.end() );
173177
}
174178
}
175179
}

data/cube_open.off

-20
This file was deleted.

data/cube_tri.off

-22
This file was deleted.

0 commit comments

Comments
 (0)