Skip to content

feature request: Strict boolean operations #9

@cuppachino

Description

@cuppachino

I would like to request the addition of a "strict" overlay parameter. The goal of this feature is to allow for boolean operations where shapes that merely share an edge or vertex are not considered intersecting.

Currently, it appears that shapes sharing an edge are unioned, but for certain use cases, I would like to enforce that only shapes with truly overlapping areas are unioned.

Use Case:

In applications where maintaining distinct shapes is important, shared boundaries between shapes should not result in a union of those shapes. This feature would be useful for scenarios such as:

  • Geometrical simulations where touching polygons represent different objects.
  • CAD systems where overlapping volumes should only be merged when they truly overlap, not when they just share edges.

### Proposed Solution:
Introduce an OverlayRule::UnionStrict that when passed to extract_shapes, for all Overlay variants (such as F64Overlay):
1. Shapes that share edges or vertices should remain distinct and not be unioned.
2. Union operations should only combine polygons with overlapping regions.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions