X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FBuildPlugin%2FBuildPlugin_Face.cpp;h=fddd223f053a505c2d48cb5b063e7b2a70dbb38f;hb=09dabb6acd9664f589a0bd9415d804d7a37ab801;hp=14314ddbaaa2e77f71989bcef38dac407d780bf4;hpb=4a62ffb1f5db2404930e61f2a107511373312eda;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_Face.cpp b/src/BuildPlugin/BuildPlugin_Face.cpp index 14314ddba..fddd223f0 100644 --- a/src/BuildPlugin/BuildPlugin_Face.cpp +++ b/src/BuildPlugin/BuildPlugin_Face.cpp @@ -65,9 +65,13 @@ void BuildPlugin_Face::execute() // Get wires from faces. ListOfShape aWires; for(ListOfShape::const_iterator anIt = aFaces.cbegin(); anIt != aFaces.cend(); ++anIt) { - for(GeomAPI_ShapeExplorer anExp(*anIt, GeomAPI_Shape::WIRE); anExp.more(); anExp.next()) { - aWires.push_back(anExp.current()); - } + aWires.push_back(GeomAlgoAPI_ShapeTools::getFaceOuterWire(*anIt)); + //for(GeomAPI_ShapeExplorer anExp(*anIt, GeomAPI_Shape::WIRE); anExp.more(); anExp.next()) { + // if(anExp.current()->orientation() == GeomAPI_Shape::REVERSED) { + // continue; + // } + // aWires.push_back(anExp.current()); + //} } // Make faces with holes.