Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crash fix: mirror (line, axis of sketch), select with rectangle, delete
[modules/shaper.git]
/
src
/
ConstructionPlugin
/
ConstructionPlugin_Axis.h
diff --git
a/src/ConstructionPlugin/ConstructionPlugin_Axis.h
b/src/ConstructionPlugin/ConstructionPlugin_Axis.h
index df8aedcfde5bf9fd4d32414aaf67557dc7f554f2..ffaa95d04ed0614e0a1de31334fdd197250b9544 100644
(file)
--- 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;
}
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
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<GeomAPI_ICustomPrs> theDefaultPrs);
protected:
std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
protected:
+ /// Creates a new axis by two defined points
void createAxisByTwoPoints();
void createAxisByTwoPoints();
+ /// Creates a new axis as copy of cylindrical face axis
+ void createAxisByCylindricalFace();
};
};