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-11-04 14:41:20 -03:00
committed by Yorik van Havre
parent 071bc89cf1
commit 8e2e5d7b6a
+3
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;