From: nds Date: Tue, 19 Feb 2019 10:58:30 +0000 (+0300) Subject: 0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR0_DMUReviewer_2_30497;p=occt-copy.git 0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located shape (cherry picked from commit ef39d5f7b91a115ac0ec69f86fa1ba73e2395244) --- diff --git a/src/IMeshTools/IMeshTools_ShapeExplorer.cxx b/src/IMeshTools/IMeshTools_ShapeExplorer.cxx index 4df32b0b8c..c4cad24fed 100644 --- a/src/IMeshTools/IMeshTools_ShapeExplorer.cxx +++ b/src/IMeshTools/IMeshTools_ShapeExplorer.cxx @@ -69,7 +69,7 @@ void IMeshTools_ShapeExplorer::Accept ( // Explore faces TopTools_ListOfShape aFaceList; BRepLib::ReverseSortFaces (GetShape (), aFaceList); - TopTools_MapOfShape aFaceMap; + //TopTools_MapOfShape aFaceMap; // make array of faces suitable for processing (excluding faces without surface) TopLoc_Location aDummyLoc; @@ -77,12 +77,12 @@ void IMeshTools_ShapeExplorer::Accept ( TopTools_ListIteratorOfListOfShape aFaceIter (aFaceList); for (; aFaceIter.More (); aFaceIter.Next ()) { - TopoDS_Shape aFaceNoLoc = aFaceIter.Value (); - aFaceNoLoc.Location (aEmptyLoc); - if (!aFaceMap.Add(aFaceNoLoc)) - { - continue; // already processed - } + //TopoDS_Shape aFaceNoLoc = aFaceIter.Value (); + //aFaceNoLoc.Location (aEmptyLoc); + //if (!aFaceMap.Add(aFaceNoLoc)) + //{ + // continue; // already processed + //} TopoDS_Face aFace = TopoDS::Face (aFaceIter.Value ()); const Handle (Geom_Surface)& aSurf = BRep_Tool::Surface (aFace, aDummyLoc);