Skip to content

Keep point-to-plane distance invariant to normal scaling - #1499

Open
Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/plane-distance-normal-scale
Open

Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/plane-distance-normal-scale

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown

Reference issue

Reproduced on master at 61a8b0b.

What does this implement/fix?

The absolute near-zero check on the unnormalized dot product classified an offset point as on the plane when its normal was small. Divide by the normal length before returning the geometric distance.

Additional information

The regression checks on-plane and off-plane points using unit, reversed and scaled normals. The regression failed on the original implementation and passed after the fix. Tested with Python 3.13.17 and the repository's pinned requirements. The modified module's tests and examples passed, Ruff passed, and the Sphinx HTML build succeeded.

CheckList

  • Added regression coverage for the defect.
  • Updated the example documentation.
  • CI results pending.

This branch has not been deployed

No deployments
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