X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConstructionPlugin%2FConstructionPlugin_Axis.h;h=ffaa95d04ed0614e0a1de31334fdd197250b9544;hb=f387a286673e6be6e5c065f3bbf3c19ed5981a30;hp=df8aedcfde5bf9fd4d32414aaf67557dc7f554f2;hpb=a5e05254be62b4bbb070e0b9e1659a6c68b587d7;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(); };