X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPrimitivesAPI%2FPrimitivesAPI_Cylinder.cpp;h=4bd696da7e8149e2cf827834b1f821338ae4f7ec;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=debf4b0541fe06fbb6e3364ec746ef188a5589dd;hpb=45ea4b0ea4a0d15133b47d8e2bc55c8a24ed402e;p=modules%2Fshaper.git diff --git a/src/PrimitivesAPI/PrimitivesAPI_Cylinder.cpp b/src/PrimitivesAPI/PrimitivesAPI_Cylinder.cpp index debf4b054..4bd696da7 100644 --- a/src/PrimitivesAPI/PrimitivesAPI_Cylinder.cpp +++ b/src/PrimitivesAPI/PrimitivesAPI_Cylinder.cpp @@ -10,6 +10,8 @@ #include #include +#include + //================================================================================================== PrimitivesAPI_Cylinder::PrimitivesAPI_Cylinder(const std::shared_ptr& theFeature) : ModelHighAPI_Interface(theFeature) @@ -26,6 +28,7 @@ PrimitivesAPI_Cylinder::PrimitivesAPI_Cylinder(const std::shared_ptr& thePart, const ModelHighAPI_Double& theRadius, const ModelHighAPI_Double& theHeight) { - ModelHighAPI_Selection aBasePoint("VERT", "Origin"); - ModelHighAPI_Selection anAxis("EDGE", "OZ"); + ModelHighAPI_Selection aBasePoint("VERTEX", "PartSet/Origin"); + ModelHighAPI_Selection anAxis("EDGE", "PartSet/OZ"); std::shared_ptr aFeature = thePart->addFeature(PrimitivesAPI_Cylinder::ID()); return CylinderPtr(new PrimitivesAPI_Cylinder(aFeature, aBasePoint, anAxis, theRadius, theHeight)); @@ -135,9 +139,9 @@ CylinderPtr addCylinder(const std::shared_ptr& thePart, const ModelHighAPI_Double& theHeight, const ModelHighAPI_Double& theAngle) { - ModelHighAPI_Selection aBasePoint("VERT", "Origin"); - ModelHighAPI_Selection anAxis("EDGE", "OZ"); + ModelHighAPI_Selection aBasePoint("VERTEX", "PartSet/Origin"); + ModelHighAPI_Selection anAxis("EDGE", "PartSet/OZ"); std::shared_ptr aFeature = thePart->addFeature(PrimitivesAPI_Cylinder::ID()); return CylinderPtr(new PrimitivesAPI_Cylinder(aFeature, aBasePoint, anAxis, - theRadius, theHeight)); -} \ No newline at end of file + theRadius, theHeight, theAngle)); +}