X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Axis.h;h=ffaa95d04ed0614e0a1de31334fdd197250b9544;hb=eef14b29d313b9dd16453d12f20aa02383ee139c;hp=df8aedcfde5bf9fd4d32414aaf67557dc7f554f2;hpb=8579a62492b5e8227d9e256cc9754a31442c05ed;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Axis.h b/src/ConstructionPlugin/ConstructionPlugin_Axis.h index df8aedcfd..ffaa95d04 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Axis.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Axis.h @@ -58,6 +58,7 @@ class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP return CYLINDRICAL_FACE_ATTR; } + /// Returns a minimal length for axis inline static const double MINIMAL_LENGTH() { return 1.e-5; } /// Creates a new part document if needed @@ -77,7 +78,10 @@ class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP std::shared_ptr theDefaultPrs); protected: + /// Creates a new axis by two defined points void createAxisByTwoPoints(); + /// Creates a new axis as copy of cylindrical face axis + void createAxisByCylindricalFace(); };