Validate that regions within a sketch don't intersect #2170
Labels
topic: validation
Infrastructure for checking various properties of objects, making sure they are valid.
type: feature
New features and improvements to existing features
Current Situation
A
Region
is a single continuous 2D region. For example, it might be a circle, or a polygon, or a polygon with holes.Sketch
is the top-level 2D object in Fornjot, a 2-dimensional shape. It consists of multiple regions.If the regions in a sketch were to overlap, that would make the sketch invalid. But this is neither documented nor enforced right now. We need a validation check for this.
Implementation
The new validation check would go into
validate::sketch
. There is already an existing check there, and numerous others in the sibling modules. Those can be used as a template for implementing the new one.Related Issues
There are a few related issues that are currently open:
Region
itself. If that were implemented first, it would also simplify the implementation of this issue.None of those issues are blockers for this one, but if work on any of them was ongoing by the time this issue is picked up, that work would have to be coordinated.
The text was updated successfully, but these errors were encountered: