return;
}
- aPathWire.Move(getPathToBaseTranslation(aBaseShape, aPathWire));
+ aPathWire.Move(getPathToBaseTranslation(theBaseShape->impl<TopoDS_Shape>(), aPathWire));
// Getting Bi-Normal.
if(!theBiNormal.get()) {
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.
GeomShapePtr aFromShape(new GeomAPI_Shape), aToShape(new GeomAPI_Shape);
aFromShape->setImpl(new TopoDS_Shape(aPipeBuilder->FirstShape()));
aToShape->setImpl(new TopoDS_Shape(aPipeBuilder->LastShape()));
+ fixOrientation(aFromShape);
+ fixOrientation(aToShape);
this->addFromShape(aFromShape);
this->addToShape(aToShape);