]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix pipe to avoid moving of the path, if it is passed through the first face.
authorazv <azv@opencascade.com>
Tue, 2 Oct 2018 13:04:33 +0000 (16:04 +0300)
committerazv <azv@opencascade.com>
Tue, 2 Oct 2018 13:05:02 +0000 (16:05 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Pipe.cpp

index 2578c836c64956f8525f79ab06c64af2622342f6..419854e011d8aa31abcf2b0053210497f04047e2 100644 (file)
@@ -144,7 +144,7 @@ void GeomAlgoAPI_Pipe::build(const GeomShapePtr theBaseShape,
     return;
   }
 
-  aPathWire.Move(getPathToBaseTranslation(aBaseShape, aPathWire));
+  aPathWire.Move(getPathToBaseTranslation(theBaseShape->impl<TopoDS_Shape>(), aPathWire));
 
   // Getting Bi-Normal.
   if(!theBiNormal.get()) {
@@ -221,7 +221,8 @@ void GeomAlgoAPI_Pipe::build(const ListOfShape& theBaseShapes,
     return;
   }
 
-  gp_Trsf aTrsf = getPathToBaseTranslation(aBaseShape, aPathWire);
+  TopoDS_Shape aReallyBase = theBaseShapes.front()->impl<TopoDS_Shape>();
+  gp_Trsf aTrsf = getPathToBaseTranslation(aReallyBase, aPathWire);
   aPathWire.Move(aTrsf);
 
   // Get locations after moving path shape.