@@ -58,9 +58,7 @@ bool is_non_manifold_vertex(typename boost::graph_traits<PolygonMesh>::vertex_de
58
58
typedef typename boost::property_map<PolygonMesh, Halfedge_property_tag>::const_type Visited_halfedge_map;
59
59
60
60
// Dynamic pmaps do not have default initialization values (yet)
61
- Visited_halfedge_map visited_halfedges = get (Halfedge_property_tag (), pm);
62
- for (halfedge_descriptor h : halfedges (pm))
63
- put (visited_halfedges, h, false );
61
+ Visited_halfedge_map visited_halfedges = get (Halfedge_property_tag (), pm, false );
64
62
65
63
std::size_t incident_null_faces_counter = 0 ;
66
64
for (halfedge_descriptor h : halfedges_around_target (v, pm))
@@ -324,20 +322,11 @@ OutputIterator non_manifold_vertices(const PolygonMesh& pm,
324
322
typedef CGAL::dynamic_halfedge_property_t <bool > Halfedge_property_tag;
325
323
typedef typename boost::property_map<PolygonMesh, Halfedge_property_tag>::const_type Visited_halfedge_map;
326
324
327
- Known_manifold_vertex_map known_nm_vertices = get (Vertex_bool_tag (), pm);
328
- Visited_vertex_map visited_vertices = get (Vertex_halfedge_tag (), pm);
329
- Visited_halfedge_map visited_halfedges = get (Halfedge_property_tag (), pm);
330
-
331
325
halfedge_descriptor null_h = boost::graph_traits<PolygonMesh>::null_halfedge ();
332
326
333
- // Dynamic pmaps do not have default initialization values (yet)
334
- for (vertex_descriptor v : vertices (pm))
335
- {
336
- put (known_nm_vertices, v, false );
337
- put (visited_vertices, v, null_h);
338
- }
339
- for (halfedge_descriptor h : halfedges (pm))
340
- put (visited_halfedges, h, false );
327
+ Known_manifold_vertex_map known_nm_vertices = get (Vertex_bool_tag (), pm, false );
328
+ Visited_vertex_map visited_vertices = get (Vertex_halfedge_tag (), pm, null_h);
329
+ Visited_halfedge_map visited_halfedges = get (Halfedge_property_tag (), pm, false );
341
330
342
331
for (halfedge_descriptor h : halfedges (pm))
343
332
{
0 commit comments