Definitioncore
Trimmed surface
Also called trimmed NURBS surface, trimmed patch.
A parametric surface restricted to a region of its parameter domain bounded by trimming curves, the usual way a B-rep stores the face of a curved solid.
A trimmed surface is a parametric surface , usually a NURBS patch, that is kept only over a region of its parameter rectangle. The region is bounded by closed trimming curves drawn in the plane: one outer loop, and one inner loop for each hole. A boundary representation of a curved solid stores each face this way, because a Boolean operation or a fillet cuts a face along a curve that is not a parameter line, and the patch itself cannot be cut along such a curve. The trimming curves of two neighbor faces describe the same edge in two parameter planes, and in general they do not give the same curve in space, so a trimmed model has small gaps along its edges, and these gaps are a common source of invalid models when a model moves between two systems.
Definition
Let be a regular parametric surface on the rectangle , for example a NURBS tensor-product surface whose two directions use B-splines. A trimming loop is a closed curve with and no self-intersection, usually a 2D B-spline or NURBS curve or a chain of such curves.
A trimmed surface is a pair where is a closed region bounded by a finite set of pairwise disjoint trimming loops , such that:
- is the outer loop and runs counterclockwise in the plane. The rectangle boundary is a valid outer loop.
- are inner loops. They lie inside , outside each other, and run clockwise.
- is the set of points of on the left of every loop, with the loops included. So is the closed disk of minus the open disks of the inner loops.
The point set of the face is . Its normal is , or the opposite vector when the face stores a reversed flag. This page uses the convention of the B-rep pages: the normal of a face points out of the solid, and each loop runs counterclockwise around that normal (the right-hand rule). With the normal , a loop that is counterclockwise in the plane maps to a loop that is counterclockwise around the normal in space, so the two orientation rules agree.
Each edge of the B-rep where two trimmed faces and meet has two parameter curves (often called pcurves), a part of a loop of and a part of a loop of . Many systems also store a third curve in space. In exact arithmetic the three curves describe one curve: . In a real model they are approximations of the intersection curve of the two surfaces, computed by surface surface intersection, and they agree only within a tolerance :
for some monotone reparametrization . The model is watertight within when every edge meets this bound. The exact intersection curve of two polynomial patches has a very high algebraic degree, while the stored trimming curves have a low fixed degree, so in general. Sederberg and coauthors call these gaps a long-standing problem of trimmed NURBS models and give a conversion to T-splines that has none.
Point membership in a trimmed surface is a 2D question. A point of the patch is on the face exactly when , which a winding number or ray test against the loops decides, as in point in polygon with curved edges. A ray test meets each loop in the roots of one polynomial per curve piece, which is curve intersection of the ray with a B-spline curve, for example by Bézier clipping. Degenerate input is part of the definition: a point on a loop is on the face, the test must return "on" for it, and a ray through a vertex of a loop must be counted once, as in the polygon case.
Examples and non-examples
- A plate with a round hole. Let on , with outer loop and one inner loop, the circle of center and radius run clockwise. A NURBS curve represents this circle exactly. The face is the unit square minus an open disk. Its area is .
- A cylinder cut by a cylinder. Take the cylinder on and a second cylinder that crosses it, as in a T-joint of two pipes. The face of the union on the big cylinder has an inner loop on each side, near and near , where the second cylinder enters and leaves. These are closed curves in the plane that no parameter line can follow.
- An untrimmed patch. A Bézier or B-spline patch with is the case with outer loop .
- A periodic surface. On a full cylinder, a loop that goes once around the axis is not a closed curve in the rectangle ; it runs from to . Systems treat this by a seam edge on the line , which makes the loop closed in , or by a domain that is a cylinder. Without one of the two, the definition above does not apply.
Non-examples:
- Crossing loops. If an inner loop crosses the outer loop, or two inner loops cross, the "left of every loop" rule gives no consistent region, and the face is invalid.
- A loop with the wrong orientation. An inner loop that runs counterclockwise defines, by the left rule, the region inside it. Together with the outer loop the region is then only the inner disk, which is not the intended face with a hole.
- A loop outside . A trimming curve that leaves the rectangle asks for points where is not defined. Such curves come from an intersection curve that was computed past the end of a patch.
Related definitions
- A NURBS surface or a tensor-product surface is the base surface . Its parameter rectangle is .
- A boundary representation stores faces as trimmed surfaces, edges as curves with their parameter curves, and the adjacency of faces, edges and loops.
- Surface surface intersection computes the curves along which a Boolean operation trims two faces. Its output becomes two parameter curves and one space curve.
- Surface tessellation of a trimmed surface must triangulate , not , and must use the same points on the edge for both neighbor faces, or the mesh has cracks along the gaps.
- An offset surface of a trimmed face is trimmed by the image of the same loops, as long as the offset has no self-intersection.
- The gaps are an instance of the geometric robustness problem: the model is consistent only within a tolerance, and algorithms that need exact incidence must treat edges as tolerance zones.
References
- Thomas W. Sederberg, G. Thomas Finnigan, Xin Li, Hongwei Lin and Heather Ipson, Watertight trimmed NURBS, ACM Transactions on Graphics 27(3), Article 79, 2008, the introduction (the gaps between neighbor trimmed NURBS faces and why they cannot be removed in general) and the conversion of a trimmed NURBS model into a gap-free T-spline model
- Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 1, Representation of curves and surfaces, and Chapter 5, Intersection problems (the intersection curves that become trimming curves)
- Christoph M. Hoffmann, Geometric and Solid Modeling, An Introduction, Morgan Kaufmann, 1989, the chapters on curved edges and faces and on surface intersections (general locator, the chapter titles are not confirmed)
Where this leads
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 W5MMTQ Edit this page History Report an error Markdown