mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +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())
|
for (TopExp_Explorer e(shape, TopAbs_FACE); e.More(); e.Next())
|
||||||
{
|
{
|
||||||
TopoDS_Face face = TopoDS::Face(e.Current());
|
TopoDS_Face face = TopoDS::Face(e.Current());
|
||||||
|
if(fmap.Contains(face)) continue;
|
||||||
// Handle(TopoDS_Face) face = e.Current();
|
// Handle(TopoDS_Face) face = e.Current();
|
||||||
fmap.Add(face);
|
fmap.Add(face);
|
||||||
ExtractFaceData(face, index, p, n, box);
|
ExtractFaceData(face, index, p, n, box);
|
||||||
|
Loading…
Reference in New Issue
Block a user