mirror of https://github.com/CGAL/cgal
fix debug
This commit is contained in:
parent
3a98df102a
commit
6ac6cf0ff5
|
|
@ -419,13 +419,15 @@ detect_corners_of_regions(
|
||||||
for (vertex_descriptor v : line_vertices)
|
for (vertex_descriptor v : line_vertices)
|
||||||
if (vertex_count[v]==1)
|
if (vertex_count[v]==1)
|
||||||
{
|
{
|
||||||
|
if (get(corner_id_map, v) == std::size_t(-1))
|
||||||
|
{
|
||||||
#ifdef CGAL_DEBUG_DETECT_CORNERS_OF_REGIONS
|
#ifdef CGAL_DEBUG_DETECT_CORNERS_OF_REGIONS
|
||||||
debug_corners << mesh.point(v) << "\n";
|
debug_corners << mesh.point(v) << "\n";
|
||||||
#endif
|
#endif
|
||||||
if (get(corner_id_map, v) == std::size_t(-1))
|
|
||||||
put(corner_id_map, v, cid++);
|
put(corner_id_map, v, cid++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// process trivial edges (could be done before if needed)
|
// process trivial edges (could be done before if needed)
|
||||||
for(edge_descriptor e : trivial_edges)
|
for(edge_descriptor e : trivial_edges)
|
||||||
|
|
@ -435,10 +437,20 @@ detect_corners_of_regions(
|
||||||
#endif
|
#endif
|
||||||
put(ecm, e, true);
|
put(ecm, e, true);
|
||||||
if (get(corner_id_map, source(e, mesh))==std::size_t(-1))
|
if (get(corner_id_map, source(e, mesh))==std::size_t(-1))
|
||||||
|
{
|
||||||
|
#ifdef CGAL_DEBUG_DETECT_CORNERS_OF_REGIONS
|
||||||
|
debug_corners << mesh.point(source(e, mesh)) << "\n";
|
||||||
|
#endif
|
||||||
put(corner_id_map, source(e, mesh), cid++);
|
put(corner_id_map, source(e, mesh), cid++);
|
||||||
|
}
|
||||||
if (get(corner_id_map, target(e, mesh))==std::size_t(-1))
|
if (get(corner_id_map, target(e, mesh))==std::size_t(-1))
|
||||||
|
{
|
||||||
|
#ifdef CGAL_DEBUG_DETECT_CORNERS_OF_REGIONS
|
||||||
|
debug_corners << mesh.point(target(e, mesh)) << "\n";
|
||||||
|
#endif
|
||||||
put(corner_id_map, target(e, mesh), cid++);
|
put(corner_id_map, target(e, mesh), cid++);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return cid;
|
return cid;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue