Sketcher Ellipse and ArcOfEllipse: Major bug fixes

- Change mode so that focus1 is not a point, but two doubles so that visual model and solver model match in number of points.
- Solver fix to deal with reduced constraint partials accuracy (threshold for matrix rank calculation tweak)
- Changes suggested by logari81
This commit is contained in:
Abdullah Tahiri
2014-10-07 15:26:34 +02:00
committed by wmayer
parent c2dc99eacd
commit 69398fb739
7 changed files with 62 additions and 78 deletions

View File

@@ -2145,9 +2145,9 @@ void ViewProviderSketch::updateColor(void)
m->diffuseColor = SelectColor;
} else if (type == Sketcher::Coincident) {
int index;
index = edit->ActSketch.getVisiblePointId(constraint->First, constraint->FirstPos) + 1;
index = edit->ActSketch.getPointId(constraint->First, constraint->FirstPos) + 1;
if (index >= 0 && index < PtNum) pcolor[index] = SelectColor;
index = edit->ActSketch.getVisiblePointId(constraint->Second, constraint->SecondPos) + 1;
index = edit->ActSketch.getPointId(constraint->Second, constraint->SecondPos) + 1;
if (index >= 0 && index < PtNum) pcolor[index] = SelectColor;
}
} else if (edit->PreselectConstraintSet.count(i)) {