Definitioncore
Regularized set operations
Also called regularized Boolean operations, regularized Booleans.
Union, intersection and difference of solids followed by the closure of the interior, so that the result is again a solid and has no dangling faces, edges or points.
The regularized set operations are the union, intersection and difference that solid modeling uses. Each one does the ordinary set operation and then takes the closure of the interior of the result. This removes the parts of lower dimension, such as the face that two touching cubes have in common, so the result of an operation on two solids is again a solid. Requicha and Tilove defined them in 1978, and they are the operations of a CSG tree.
Definition
For a set , write for its interior and for its closure, as on the r-set page. The regularization of is . For two sets and , the regularized operations are
and the regularized complement is . In solid modeling these are the set operations. The ordinary operations are only a step of the definition.
The facts below hold for any closed regular sets and , and so for any r-sets. Each has a short proof.
- is regular. Let . Then , since is open and lies in , so . And . So , and every regularized result is a closed regular set.
- Union needs no regularization. , so . The other inclusion holds because is closed. So .
- Intersection keeps only shared volume. An open set lies in only if it lies in both, so , and . A point of survives only if it is a limit of points inside both solids.
- Difference. , and because is closed. So . The same steps give and .
- Boolean algebra. The closed regular subsets of , with , and , the empty set and , form a Boolean algebra (Requicha and Tilove 1978). So the regularized operations are associative, commutative and distributive over each other, and a CSG tree can be rearranged by the usual laws of Boolean algebra.
- Closure on r-sets. If and are r-sets, then , and are r-sets (Tilove and Requicha 1980). Fact 1 gives regularity, and the results are bounded because they lie in . The part that needs a theorem is that the interior and the closure of a semianalytic set are semianalytic. The complement is not bounded, so it is not an r-set, and a modeler gives the user only the difference.
- One regularization at the end is enough. Let be an expression of unions, intersections and differences, let be the same expression with the regularized operations, and let the be closed regular sets. Then . Proof. Let . The boundary of a closed regular set has no interior point (an open set in lies in , so it meets , which is disjoint from ), so is a closed set with empty interior. A point has a ball that lies inside or outside each . On the set is all of or empty, and, by induction on the expression, so is , with the same answer, because depends only on . So and agree outside . For any set , is dense in and equals , so depends only on . So , the last step by fact 1. So regularization changes nothing at points off the boundaries of the inputs. It decides only which boundary points stay. A point-membership test can evaluate the ordinary expression at points near in general position (see the CSG page), but a boundary algorithm, which computes exactly these boundary points, must regularize.
Examples and non-examples
All examples use axis-aligned boxes, so each result can be checked by hand.
| ordinary result | regularized result | ||
|---|---|---|---|
| , a face | |||
| the same set | |||
| , not closed |
- Touching cubes. The two unit cubes and share the face . The ordinary intersection is that square: it has no volume, but it is not empty, so a program that tests "do the solids intersect?" with the ordinary operation says yes. The interior of the square in is empty, so the regularized intersection is empty. This is the case that the definition was made for.
- Difference. For and , the ordinary difference is . It is not closed: the face is missing, so it has no boundary there. By fact 4, , which is a closed box with the face back in place.
- Part solid, part dangling. In the plane, take the rectangle and the set , which is a rectangle to the right of and a square that sits on top of . Then : a square with a segment that hangs from its corner . The regularized intersection is the square alone. So regularization does not only turn empty-looking results into the empty set; it also cuts the lower-dimensional parts off a result that has volume.
- The result can be a non-manifold r-set. is the two cubes that share one edge. It is regular, so regularization does not change it, but its boundary is not a 2-manifold at the shared edge. The manifold solids are not closed under the regularized operations, even though the r-sets are.
- Regularizing once at the end. Take , and in , and the expression . The ordinary steps give , and . The regularized steps give . The intermediate sets differ, a half-open interval against a closed one and a point against the empty set, but only at the point , which is on the boundary of the inputs, so fact 7 makes the final results equal.
- Non-example: the ordinary result is not a solid even when it has volume. In the third row of the table the ordinary intersection is a face, and in the "part solid, part dangling" case it is a square with a segment. A B-rep algorithm that computes the ordinary intersection of two boundaries keeps that face or that segment, and it then stores a set that is not an r-set. Fact 7 does not help here, because the boundary is the output.
Related definitions
- An r-set is a bounded, closed, regular, semianalytic set. Fact 6 says that the r-sets are closed under the regularized operations.
- Constructive solid geometry describes a solid as a tree of primitives and regularized operations.
- Set membership classification (Tilove 1980) computes the part of a point, a segment or a face that is in, on or out of a regularized result. The "on" part needs neighborhood information, which vertex neighborhood classification gives.
- Solid Boolean operations is the problem of computing a regularized operation on two boundary representations, and boundary evaluation computes the boundary of a whole CSG tree.
- On spatial occupancy enumeration, the set operations on cells are the regularized operations, with no extra step.
- In the plane, polygon clipping computes the 2D form of the same operations, and clippers must decide the same question about shared edges.
References
- Robert B. Tilove, Set membership classification, a unified approach to geometric intersection problems, IEEE Transactions on Computers C-29(10), 874 to 883, 1980, the regularized operations and the classification of a candidate set against a CSG tree
- Robert B. Tilove and Aristides A. G. Requicha, Closure of Boolean operations on geometric entities, Computer-Aided Design 12(5), 219 to 220, 1980, the closure of the r-sets under the regularized operations
- Aristides A. G. Requicha and Robert B. Tilove, Mathematical foundations of constructive solid geometry, general topology of closed regular sets, Production Automation Project Technical Memorandum 27, University of Rochester, 1978, the closed regular sets and their Boolean algebra
- Aristides A. G. Requicha, Representations for rigid solids, theory, methods, and systems, ACM Computing Surveys 12(4), 437 to 464, 1980, the regularized set operations in the section on mathematical models of solids
- Martti Mäntylä, An Introduction to Solid Modeling, Computer Science Press, 1988, Section 3.4.2, Regularity (p. 33), and Appendix B, Elements of point set topology
Where this leads
- Alternating sum of volumes
- Boundary evaluation
- B-rep to CSG conversion
- Constructive solid geometry
- CSG ray casting
- Dexel representation
- Feature interaction
- Mesh Boolean operations
- Nef polyhedron
- Selective geometric complex
- Set membership classification
- Boolean operations on solids
- Spatial occupancy enumeration
- Vertex neighborhood classification
- Volume decomposition feature recognition
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag DRHW8K Edit this page History Report an error Markdown