myValue = 0.0;
}
+void PlaneGCSSolver_ConstraintWrapper::setId(const ConstraintID& theID)
+{
+ myID = theID;
+ std::list<GCSConstraintPtr>::iterator anIt = myGCSConstraints.begin();
+ for (; anIt != myGCSConstraints.end(); ++anIt)
+ (*anIt)->setTag((int)theID);
+}
+
void PlaneGCSSolver_ConstraintWrapper::setValueParameter(const ParameterWrapperPtr& theValue)
{
myValueParam = theValue;
{
if (type() != theOther->type())
return false;
-//// const Slvs_Constraint anOtherConstraint =
-//// std::dynamic_pointer_cast<PlaneGCSSolver_ConstraintWrapper>(theOther)->constraint();
-//// if (mySlvsConstraint.type != anOtherConstraint.type)
-//// return false;
-////
-//// // Verify SolveSpace entities. If they are equal, no need additional checking of parameters.
-//// if (mySlvsConstraint.group == anOtherConstraint.group &&
-//// mySlvsConstraint.ptA == anOtherConstraint.ptA &&
-//// mySlvsConstraint.ptB == anOtherConstraint.ptB &&
-//// mySlvsConstraint.entityA == anOtherConstraint.entityA &&
-//// mySlvsConstraint.entityB == anOtherConstraint.entityB &&
-//// mySlvsConstraint.entityC == anOtherConstraint.entityC &&
-//// mySlvsConstraint.entityD == anOtherConstraint.entityD &&
-//// fabs(mySlvsConstraint.valA - anOtherConstraint.valA) < tolerance) {
-//// return true;
-//// }
// Verify equality of values
if (fabs(myValue - theOther->value()) > tolerance)