Sketcher: [skip ci] handle coincident points when trying to create arc/circle

This commit is contained in:
wmayer
2021-10-28 17:03:11 +02:00
parent 5e2bb15999
commit 09e2e7acfa

View File

@@ -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);