Update arguments verification in tangency constraint.
return;
}
- if (myType != CONSTRAINT_TANGENT_CIRCLE_LINE &&
+ if (myType == CONSTRAINT_TANGENT_ARC_LINE &&
!hasSingleCoincidence(theAttributes[2], theAttributes[3]))
- myErrorMsg = SketchSolver_Error::INCORRECT_ATTRIBUTE();
+ myErrorMsg = SketchSolver_Error::TANGENCY_FAILED();
if (isSwap) {
EntityWrapperPtr aTemp = theAttributes[2];
static const std::string MY_ERROR_VALUE("Entity already fixed");
return MY_ERROR_VALUE;
}
+ /// Tangency constraint has been built with wrong attributes (for example, line and arc have two coincident points)
+ inline static const std::string& TANGENCY_FAILED()
+ {
+ static const std::string MY_ERROR_VALUE("Unable to create tangency constraint on given attributes");
+ return MY_ERROR_VALUE;
+ }
/// Crash in SolveSpace
inline static const std::string& SOLVESPACE_CRASH()
{