From a55586483e5dccc5466d6ec241e2147e210d839f Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 2 Oct 2018 16:04:33 +0300 Subject: [PATCH] Fix pipe to avoid moving of the path, if it is passed through the first face. --- src/GeomAlgoAPI/GeomAlgoAPI_Pipe.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.39.2