Skip to content

fix(geom_polygon): munch the closing edge in non-linear coords#1100

Merged
has2k1 merged 1 commit into
mainfrom
fix-polygon-closing-edge
Jul 15, 2026
Merged

fix(geom_polygon): munch the closing edge in non-linear coords#1100
has2k1 merged 1 commit into
mainfrom
fix-polygon-closing-edge

Conversation

@has2k1

@has2k1 has2k1 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

A polygon is a closed ring, but its vertices only trace it open, so the edge from the last vertex back to the first was never subdivided by munch. In a non-linear coord that edge stayed a straight chord across a curved boundary. Repeat each group's first vertex before munching so the closing edge is subdivided like any other; linear coords are untouched.

A polygon is a closed ring, but its vertices only trace it open, so the
edge from the last vertex back to the first was never subdivided by
munch. In a non-linear coord that edge stayed a straight chord across a
curved boundary. Repeat each group's first vertex before munching so the
closing edge is subdivided like any other; linear coords are untouched.
@has2k1 has2k1 merged commit 93c1c88 into main Jul 15, 2026
11 checks passed
@has2k1 has2k1 deleted the fix-polygon-closing-edge branch July 15, 2026 16:35
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