- Use get() instead of [] operator to access the VertexPointMap.
This commit is contained in:
Maxime Gimeno 2016-06-10 09:16:11 +02:00
parent aeab78c74b
commit d2e6c0e9fa
1 changed files with 3 additions and 3 deletions

View File

@ -153,11 +153,11 @@ public:
for(it = faces(mesh).begin(), end = faces(mesh).end(); it!=end; it++)
{
halfedge_handle h = halfedge(*it, mesh);
Point_ref a(vertex_point_map[target(h, mesh)]);
Point_ref a(get(vertex_point_map, target(h, mesh)));
h = next(h, mesh);
Point_ref b(vertex_point_map[target(h, mesh)]);
Point_ref b(get(vertex_point_map,target(h, mesh)));
h = next(h, mesh);
Point_ref c(vertex_point_map[target(h, mesh)]);
Point_ref c(get(vertex_point_map, target(h, mesh)));
bool test = collinear(a,b,c);
if(!test)
tree.insert(Primitive(it, mesh, vertex_point_map));