Skip to content

Fix point buffer coverage and shrinking hole boundaries - #1528

Open
tinko92 wants to merge 1 commit into
boostorg:developfrom
tinko92:fix/buffer-coverage-shrinking-hole-boundaries
Open

tinko92 wants to merge 1 commit into
boostorg:developfrom
tinko92:fix/buffer-coverage-shrinking-hole-boundaries

Conversation

@tinko92

@tinko92 tinko92 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

This is a small fix for buffer based on some failure cases from the generalized grid test (reduced copies added as tests).

Basically, the center distance shortcut is removed because it can fail with some buffers whose outside exceed the buffer distance (e.g. for a square buffer of a point, another point can be inside the buffer but further away from the center than the buffer distance, because the square with some side length is larger than the circle of the same diameter.

The other fix is that the offset of a hole (inner ring) must not become part of the outline of another components buffer. For a positive buffer, holes shrink (and may disappear altogether). But with a sufficient distance, the offset line of a hole with miter buffer may overshoot and be mistaken for part of another component's buffer outline unless correctly filtered.

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