mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
CGAL: fix potential invalid default-constructed iterator compare on border-halfedge faces in Triangulate()
This commit is contained in:
committed by
Thomas Krijnen
parent
bdc6d2340f
commit
d27481538b
@@ -553,8 +553,9 @@ void ifcopenshell::geometry::CgalShape::Triangulate(ifcopenshell::geometry::Sett
|
|||||||
vertexidx[i] = (int)vidx;
|
vertexidx[i] = (int)vidx;
|
||||||
is_face_boundary[i] = setting_use_original_edges
|
is_face_boundary[i] = setting_use_original_edges
|
||||||
? original_edges.find({ current_halfedge->vertex()->point(), current_halfedge->prev()->vertex()->point() }) != original_edges.end()
|
? original_edges.find({ current_halfedge->vertex()->point(), current_halfedge->prev()->vertex()->point() }) != original_edges.end()
|
||||||
: facet_to_component[face] != facet_to_component[current_halfedge->opposite()->face()];
|
: current_halfedge->opposite()->is_border()
|
||||||
|
|| facet_to_component.at(face) != facet_to_component.at(current_halfedge->opposite()->face());
|
||||||
|
|
||||||
++i;
|
++i;
|
||||||
++num_vertices;
|
++num_vertices;
|
||||||
++current_halfedge;
|
++current_halfedge;
|
||||||
|
|||||||
Reference in New Issue
Block a user