getType(), myGroup->getWorkplaneId(), aValue, aPoint[0], aPoint[1], aLine, SLVS_E_UNKNOWN);
aConstraint.h = myStorage->addConstraint(aConstraint);
mySlvsConstraints.push_back(aConstraint.h);
- adjustConstraint();
-}
-void SketchSolver_ConstraintDistance::adjustConstraint()
-{
+ // Adjust point-line distance
if (getType() != SLVS_C_PT_LINE_DISTANCE)
return;
}
}
}
-
/// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
virtual void process();
- /// \brief Verifies the sign of the distance between line and point and change it if necessary
- virtual void adjustConstraint();
-
private:
int myType; ///< type of constraint (applicable: SLVS_C_PT_PT_DISTANCE, SLVS_C_PT_LINE_DISTANCE)
};