mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
faces may be multiple time in explorer iteration -> skip if already in map
This commit is contained in:
parent
de0d706ec2
commit
28efccccf4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user