faces may be multiple time in explorer iteration -> skip if already in map

This commit is contained in:
Christopher Lackner 2022-08-19 09:44:58 +02:00
parent de0d706ec2
commit 28efccccf4

View File

@ -1187,6 +1187,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
for (TopExp_Explorer e(shape, TopAbs_FACE); e.More(); e.Next())
{
TopoDS_Face face = TopoDS::Face(e.Current());
if(fmap.Contains(face)) continue;
// Handle(TopoDS_Face) face = e.Current();
fmap.Add(face);
ExtractFaceData(face, index, p, n, box);