Sketcher: include coincident constraints in the sketch diagnosis

This commit is contained in:
logari81 2012-05-25 18:18:51 +02:00
parent b7965052a3
commit 7cbb16f2e8

View File

@ -743,10 +743,7 @@ int Sketch::addPointCoincidentConstraint(int geoId1, PointPos pos1, int geoId2,
GCS::Point &p1 = Points[pointId1]; GCS::Point &p1 = Points[pointId1];
GCS::Point &p2 = Points[pointId2]; GCS::Point &p2 = Points[pointId2];
int tag = ++ConstraintsCounter; int tag = ++ConstraintsCounter;
// trick: we do not tag coincidence constraints in order to exclude GCSsys.addConstraintP2PCoincident(p1, p2, tag);
// them from the diagnosing of conflicts
//GCSsys.addConstraintP2PCoincident(p1, p2, tag);
GCSsys.addConstraintP2PCoincident(p1, p2);
return ConstraintsCounter; return ConstraintsCounter;
} }
return -1; return -1;