Skip to content

BHoM_Engine: Fixes the extend method for arcs with start angle that is not 0 - #3626

Open
Iain11 wants to merge 1 commit into
developfrom
BHoM_Engine-#3563-Fix-problem-with-extension-of-arc
Open

Iain11 wants to merge 1 commit into
developfrom
BHoM_Engine-#3563-Fix-problem-with-extension-of-arc

Conversation

@Iain11

@Iain11 Iain11 commented Oct 12, 2026 •

Copy link
Copy Markdown

Issues addressed by this PR

Fixes the bug when extending an arc with a start angle that is not 0
Closes #3563

Changed the way the extend method extends arcs. The original script would alter the coordinate system of the arc to set angle 0 at the start of the arc. This created some problems when the start angle was set to something that was not 0. Instead the extension of the start is now calculated as a negative angle.

TestFile

OriginalTest
Original TestFile doesn't cover issue.
ForIssue

Changed the way the method does the extension. Instead of rotating the coordinate system the arc is based on it uses the start angle as negative.
@Iain11 Iain11 self-assigned this Oct 12, 2026
@Iain11 Iain11 added the type:bug Error or unexpected behaviour label Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Error or unexpected behaviour

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Geometry_Engine: Extend fails on some arcs due to the adjustment to set the start angle at 0 setting the end angle to a negative value

1 participant