Skip to content

Comments

Feat: Change to local Newell's normal#3977

Draft
jafranc wants to merge 3 commits intodevelopfrom
jafranc/feat/localNewell
Draft

Feat: Change to local Newell's normal#3977
jafranc wants to merge 3 commits intodevelopfrom
jafranc/feat/localNewell

Conversation

@jafranc
Copy link
Contributor

@jafranc jafranc commented Feb 20, 2026

This PR draft a proposal for switching from Newell's normal method based on global coordinates to local, i.e. from
\mathbf{n} = \sum_i P_i x P_(i+1)%n to \mathbf{n} = \sum_i (P_i - P_0) x (P_(i+1)%n - P_0).

This could avoid some precision loss when dealing with large coordinates.

Tests are also more complete.

@jafranc jafranc self-assigned this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant