Commit 141ed2d3 authored by Nathan Lee's avatar Nathan Lee Committed by Thomas Holder

Change Path Cutting for Arcs

The arc's sweep and large arc flags are wrong.
Also remove early return (proper error handling
already present).
#250
parent 47f95bef
Pipeline #66638698 failed with stages
in 134 minutes and 36 seconds
......@@ -1241,9 +1241,9 @@ void Path::ConvertPositionsToForced(int nbPos, cut_position *poss)
PathDescrArcTo *nData = dynamic_cast<PathDescrArcTo *>(descr_cmd[cp]);
nData->p=theP;
if ( delta*ct > M_PI ) {
nData->clockwise=true;
nData->large=true;
} else {
nData->clockwise=false;
nData->large=false;
}
}
// decalages dans le tableau des positions de coupe
......
......@@ -955,8 +955,6 @@ void Path::TangentOnArcAt(double at, const Geom::Point &iS, PathDescrArcTo const
csex /= rx;
csey /= ry;
double l = csex * csex + csey * csey;
if (l >= 4)
return;
double const d = sqrt(std::max(1 - l / 4, 0.0));
double csdx = csey;
double csdy = -csex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment