Sketcher: Constraints - add ability to generate constraint type string

This commit is contained in:
Abdullah Tahiri
2022-05-08 11:23:41 +02:00
committed by abdullahtahiriyo
parent ee66417a57
commit ad23b275a1
2 changed files with 29 additions and 0 deletions

View File

@@ -228,3 +228,13 @@ void Constraint::substituteIndex(int fromGeoId, int toGeoId)
this->Third = toGeoId;
}
}
std::string Constraint::typeToString(ConstraintType type)
{
return type2str[type];
}
std::string Constraint::internalAlignmentTypeToString(InternalAlignmentType alignment)
{
return internalAlignmentType2str[alignment];
}