From: azv Date: Tue, 2 Oct 2018 13:04:33 +0000 (+0300) Subject: Fix pipe to avoid moving of the path, if it is passed through the first face. X-Git-Tag: CEA_2018-2~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a55586483e5dccc5466d6ec241e2147e210d839f;p=modules%2Fshaper.git Fix pipe to avoid moving of the path, if it is passed through the first face. --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Pipe.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Pipe.cpp index 2578c836c..419854e01 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Pipe.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Pipe.cpp @@ -144,7 +144,7 @@ void GeomAlgoAPI_Pipe::build(const GeomShapePtr theBaseShape, return; } - aPathWire.Move(getPathToBaseTranslation(aBaseShape, aPathWire)); + aPathWire.Move(getPathToBaseTranslation(theBaseShape->impl(), 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(); + gp_Trsf aTrsf = getPathToBaseTranslation(aReallyBase, aPathWire); aPathWire.Move(aTrsf); // Get locations after moving path shape.