[Sketcher] Include endpoint-to-endpoint tangency as coincidence

Coincidence is implied as part of this particular variety of tangent constraint.
This commit is contained in:
Ajinkya Dahale
2024-02-27 14:35:32 +05:30
committed by Chris Hennes
parent d1c9370614
commit f8f159c4d3

View File

@@ -8331,6 +8331,20 @@ void SketchObject::getDirectlyCoincidentPoints(int GeoId, PointPos PosId,
PosIdList.push_back((*it)->FirstPos);
}
}
if ((*it)->Type == Sketcher::Tangent) {
if ((*it)->First == GeoId && (*it)->FirstPos == PosId &&
((*it)->SecondPos == Sketcher::PointPos::start ||
(*it)->SecondPos == Sketcher::PointPos::end)) {
GeoIdList.push_back((*it)->Second);
PosIdList.push_back((*it)->SecondPos);
}
if ((*it)->Second == GeoId && (*it)->SecondPos == PosId &&
((*it)->FirstPos == Sketcher::PointPos::start ||
(*it)->FirstPos == Sketcher::PointPos::end)) {
GeoIdList.push_back((*it)->First);
PosIdList.push_back((*it)->FirstPos);
}
}
}
if (GeoIdList.size() == 1) {
GeoIdList.clear();