]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_Chamfer.cpp
Salome HOME
Merge remote-tracking branch 'origin/cgt/chamfer'
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Chamfer.cpp
index 15fe660838fb4dfa279f62286ddbb999854918f6..ecba849a963d651c901a41e7e6173b83a969e7a7 100644 (file)
@@ -49,13 +49,13 @@ void GeomAlgoAPI_Chamfer::build(const GeomShapePtr& theBaseSolid,
   TopoDS_Shape aShapeBase = theBaseSolid->impl<TopoDS_Shape>();
   TopTools_IndexedDataMapOfShapeListOfShape M;
   TopExp::MapShapesAndAncestors(aShapeBase, TopAbs_EDGE, TopAbs_FACE, M);
+
   // create chamfer builder
   BRepFilletAPI_MakeChamfer* aChamferBuilder =
       new BRepFilletAPI_MakeChamfer(aShapeBase);
   setImpl(aChamferBuilder);
   setBuilderType(OCCT_BRepBuilderAPI_MakeShape);
-  
+
   for (ListOfShape::const_iterator anIt = theChamferShapes.begin();
      anIt != theChamferShapes.end(); ++anIt) {
     if ((*anIt)->isEdge()) {
@@ -63,7 +63,7 @@ void GeomAlgoAPI_Chamfer::build(const GeomShapePtr& theBaseSolid,
       if (aMapEdgeFace.find(*anIt) != aMapEdgeFace.end()) {
         //TopoDS_Face F = (aMapEdgeFace[*anIt])->impl<TopoDS_Face>();
         TopoDS_Face F = (aMapEdgeFace.at(*anIt))->impl<TopoDS_Face>();
-        if (!BRepTools::IsReallyClosed(E,F) && !BRep_Tool::Degenerated(E) && 
+        if (!BRepTools::IsReallyClosed(E,F) && !BRep_Tool::Degenerated(E) &&
               M.FindFromKey(E).Extent() == 2) {
           if (performDistances) {
               aChamferBuilder->Add(aVal1, aVal2, E, F);