Sketcher: Made constraints aware of whether they are dimensionals or not

========================================================================

Centralise the knowledge on whether a constraint is dimensional or not within the constraint
This commit is contained in:
Abdullah Tahiri
2018-10-29 11:06:14 +01:00
committed by Yorik van Havre
parent 071bc89cf1
commit 8e2e5d7b6a

View File

@@ -104,6 +104,9 @@ public:
inline double getValue() const {
return Value;
}
inline bool isDimensional() const { return Type == Distance || Type == DistanceX || Type == DistanceY ||
Type == Radius || Type == Diameter || Type == Angle || Type == SnellsLaw;}
friend class PropertyConstraintList;