Sketcher: [skip ci] handle coincident points when trying to create arc/circle
This commit is contained in:
@@ -107,6 +107,9 @@ Base::Vector2d GetCircleCenter (const Base::Vector2d &p1, const Base::Vector2d &
|
||||
double vv = v*v;
|
||||
double ww = w*w;
|
||||
|
||||
if (uu * vv * ww == 0)
|
||||
THROWM(Base::ValueError,"Two points are coincident");
|
||||
|
||||
double uv = -(u*v);
|
||||
double vw = -(v*w);
|
||||
double uw = -(u*w);
|
||||
|
||||
Reference in New Issue
Block a user