mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 17:16:24 +00:00
Fix map invalidation reported by valgrind
This commit is contained in:
@@ -831,6 +831,10 @@ bool CgalKernel::process_extrusion(const cgal_face_t& bottom_face, const taxonom
|
|||||||
}
|
}
|
||||||
auto p = external_edges.insert({ { i0, i1 }, { i, j} });
|
auto p = external_edges.insert({ { i0, i1 }, { i, j} });
|
||||||
if (!p.second) {
|
if (!p.second) {
|
||||||
|
// Mark as internal before erasure in external
|
||||||
|
// This is {i,j} at the time the edge use was inserted.
|
||||||
|
internal_edges.insert(p.first->second);
|
||||||
|
|
||||||
// not inserted, remove
|
// not inserted, remove
|
||||||
external_edges.erase(p.first);
|
external_edges.erase(p.first);
|
||||||
|
|
||||||
@@ -838,8 +842,6 @@ bool CgalKernel::process_extrusion(const cgal_face_t& bottom_face, const taxonom
|
|||||||
// point_map. i is index in faces_to_extrude, j is segment index in wire.
|
// point_map. i is index in faces_to_extrude, j is segment index in wire.
|
||||||
internal_edges.insert({ i, j });
|
internal_edges.insert({ i, j });
|
||||||
|
|
||||||
// This is {i,j} at the time the edge use was inserted.
|
|
||||||
internal_edges.insert(p.first->second);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|||||||
Reference in New Issue
Block a user