Manual dimension centers the plane's view

With the current manual dimensions a Datum Plane is visually ex-centred from it's origin, so when drawing a circle the circle is outside of the Plane representation. With this proposed change the visual representation is centred.
This commit is contained in:
Zolko-123
2019-12-15 17:08:27 +00:00
committed by wwmayer
parent 0af2e760a1
commit 7dbc309015

View File

@@ -135,8 +135,8 @@ void ViewProviderDatumPlane::setExtents(double l, double w)
{
// Change the coordinates of the line
pCoords->point.setNum (4);
pCoords->point.set1Value(0, l, w, 0);
pCoords->point.set1Value(1, 0, w, 0);
pCoords->point.set1Value(2, 0, 0, 0);
pCoords->point.set1Value(3, l, 0, 0);
pCoords->point.set1Value(0, l/2, w/2, 0);
pCoords->point.set1Value(1, -l/2, w/2, 0);
pCoords->point.set1Value(2, -l/2, -w/2, 0);
pCoords->point.set1Value(3, l/2, -w/2, 0);
}