You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arc (and others) curved geometry discretization seams to have been screwed up recently.
Many entities use "CSMath.Geometry.CurveExtensions" to perform this task, and there is something weird in the code :
Uh oh!
There was an error while loading. Please reload this page.
Hi friends,
Arc (and others) curved geometry discretization seams to have been screwed up recently.
Many entities use "CSMath.Geometry.CurveExtensions" to perform this task, and there is something weird in the code :
=> https://github.com/DomCR/CSUtilities/blob/644156d87b14d9f60916dd45a87a86cc36f6b07f/CSMath/Geometry/CurveExtensions.cs
Calculation of points is made in entity coordinates system :
startPoint
is local X axisprep
is local Y axisBut the start angle is kept equal to
Arc.StartAngle
, leading to an angular offset in the result.Solution :
Either keep
Arc.StartAngle
&Arc.StartAngle
and calculate insideCSMath.XYZ.AxisX / CSMath.XYZ.AxisY
coordinates.Or set
endAngle -= startAngle
&startAngle = 0
The text was updated successfully, but these errors were encountered: