+ use a trick to improve edge dragging of arcs and circles (until we find a more proper solution)

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5149 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
logari81
2011-11-17 21:53:40 +00:00
parent aaea1b933c
commit 4d7a9435c1
3 changed files with 16 additions and 3 deletions

View File

@@ -1497,7 +1497,9 @@ int Sketch::initMove(int geoId, PointPos pos)
p1.y = &MoveParameters[3];
*p1.x = *center.x;
*p1.y = *center.y;
GCSsys.addConstraintP2PCoincident(p1,center,-1);
int i=GCSsys.addConstraintP2PCoincident(p1,center,-1);
GCSsys.rescaleConstraint(i-1, 0.01);
GCSsys.rescaleConstraint(i, 0.01);
}
} else if (Geoms[geoId].type == Arc) {
GCS::Point &center = Points[Geoms[geoId].midPointId];
@@ -1531,7 +1533,9 @@ int Sketch::initMove(int geoId, PointPos pos)
p1.y = &MoveParameters[3];
*p1.x = *center.x;
*p1.y = *center.y;
GCSsys.addConstraintP2PCoincident(p1,center,-1);
int i=GCSsys.addConstraintP2PCoincident(p1,center,-1);
GCSsys.rescaleConstraint(i-1, 0.01);
GCSsys.rescaleConstraint(i, 0.01);
}
}
InitParameters = MoveParameters;