Set and . A displacement from lies along the straight line precisely when its two-dimensional determinant with vanishes. Thus an implicit equation isEquivalently, write , with , and . The vector is a normal vector. The formula handles vertical and horizontal straight lines without division. It presupposes : coincident points do not determine a unique straight line.
Solving the implicit equation for when givesHere “gradient” means the slope , rather than the gradient of an implicit defining function. If and , the straight line is vertical and has no finite slope. If and , its slope is zero.
For , substitute or , respectively:In terms of the original coordinates, these arewith each expression used only when its denominator is nonzero. If , the straight line is horizontal: it misses the horizontal axis unless , in which case it is that entire axis. If , it is vertical: it misses the vertical axis unless , in which case it is that entire axis. A straight line through the origin has both finite intercepts equal to the origin whenever neither axis is coincident with it.
| Boundary | Defining function | Outward normal |
|---|
The six vertices of a polygon traverse the boundary counterclockwise. Each displayed normal vector therefore points to the right of the corresponding directed boundary line segment; it need not be a unit vector. The zero level sets are full straight lines, while the actual boundary retains only the appropriate line segments.
The inward corner at prevents using the set intersection of all six half-spaces: that would incorrectly discard the upper-left part of the seat. Instead takeThe last factor permits either or , removing only the upper-right region. Another way to understand the same constructive solid geometry model is as the set union of two convex polygons, obtained by distributing the last set intersection over this set union. Its constructive solid geometry tree has an intersection at the root and a union child for .
Seat profile, six supporting lines with outward normals, and the right child of the initial bounding box
. Details. The tight axis-aligned bounding box is . Bisect vertically at , giving a right child . For a scalar implicit function representing the same constructive solid geometry solid, useWith the convention inside, set intersection corresponds to the maximum, and set union to the minimum. These operations encode membership; is not a signed distance function.
Since every is an affine function, its extreme values on occur at corners. Exact real-arithmetic interval arithmetic gives:
| Function | Range on | , propagated | , propagated |
|---|
Each leaf range is exact, but combining independent intervals forgets that the expressions share . The final enclosure need not be the exact range of . For example, equality would require both , hence , and , hence on , which is impossible. The enclosure is still sufficient for a reliable three-way decision:Here the result is unresolved. This is a real mixed box, rather than only a pessimistic test: is strictly inside, whereas is outside. A zero endpoint alone can also mean contact with the boundary, so equality must not be treated as proof of strict interior or strict exterior. In floating-point arithmetic, certified bounds require outward rounding.
Continue splitting unresolved boxes, normally alternating axes or splitting the longest side. Propagate the interval arithmetic results through the constructive solid geometry tree, discard exterior boxes and stop refining strict interior boxes. In sufficiently small boundary boxes, locate crossings of the active implicit equations with box edges and connect them into boundary line segments. Retain corners and resolve ambiguous multiple crossings by further refinement; here every genuine boundary piece is straight, so its supporting implicit equation allows exact intersection rather than a curved approximation. A maximum boundary-box diagonal gives spatial localization at that scale, provided no boundary components are discarded; corner-sign sampling alone provides no such guarantee.
The tight box saves empty-space work, but it is awkward for extracting facets. Entire boundary line segments, notably , and , lie on the initial box boundary, and lies on the first splitting straight line. A sign-change-only method may have no exterior sample on the other side and lose such pieces; exact zeros also persist through refinement. A slightly padded initial axis-aligned bounding box, together with an explicit rule for boundary-coincident pieces, makes the faceting more robust. The tight box is therefore economical for enclosure but not the best unqualified choice for a simple faceting implementation.
Choose a circular fillet that removes the sharp convex tip at . The unit directions from toward and are and . Therefore the prescribed tangent points areThe circle centre lies on the normal line to through , so . Its radius to must be perpendicular to , whose direction vector is . ThusConsequentlyIndeed . The interior angle is , and the same radius follows from . The selected circular arc runs from to through angles around :The circular arc facing is the rounding; the complementary arc is not part of the boundary.
Define the disk and a half-plane through the chord byBoth satisfy , and . The clipping half-space retains the part away from , while the disk restores the rounded cap. The required local constructive solid geometry tree isOnly the portion of on the side of can be removed. To see the locality, is negative at every original vertex of a polygon except , and vanishes on the two adjacent sides exactly at . In the resulting triangle , the disk keeps the curved cap next to and discards the tip at . A global set intersection with alone would destroy most of the seat. The outward normal vector on the new boundary is ; at it has the same direction as the outward normal vectors of .
The tangent constraints alone do not insist on a circle; other conic sections can give different bulges. For example, a positive-weight rational quadratic Bézier curve with handles has the required tangent directions:Varying changes the bulge while fixing the tangent points; the circular choice has . Once a circular fillet and these two tangent points are chosen, its centre and radius have no remaining freedom. The half-plane sign and arc selection are also essential: reversing them chooses a different retained region. This construction gives matching tangent directions, or first-order geometric continuity, at ; the curvature jumps from zero on each straight side to on the circle.
Insert the union subtree from part (f) as another child of the original intersection:Thus the constructive solid geometry tree has one intersection root, four original half-space leaves and two union children. The first union handles the inward corner at ; the second embeds the circular fillet at . The line segments and now end at and start at , with the chosen circular arc between them. All other boundary line segments are retained.
Articles by others on the same topic
There are currently no matching articles.

