SketchSolver_Constraint(theConstraint),
myNumberOfObjects(0),
myNumberOfCopies(0),
- myAdjusted(false)
+ myAdjusted(false),
+ myIsFullValue(false)
{}
/// \brief Update constraint
/// \brief Update constraint
void update(bool isForce);
+ /// \brief Tries to remove constraint
+ /// \return \c false, if current constraint contains another SketchPlugin constraints (like for multiple coincidence)
+ virtual bool remove();
+
+ /// \brief Check the feature is a source or a copy of Multi-constraint
+ virtual bool isUsed(FeaturePtr theFeature) const;
+
protected:
/// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
virtual void process()
protected:
int myNumberOfObjects; ///< number of previous initial objects
int myNumberOfCopies; ///< number of previous copies of initial objects
+ bool myIsFullValue; ///< value whether the angle/distance is a full or single for objects
bool myAdjusted; ///< the constraint is already adjusted (to not do it several times)
+
+ std::set<FeaturePtr> myFeatures; ///< list of features and their copies to find whether some of them are disappeared
};
#endif