Write for the Bernstein basis, and set when is outside its index range. Differentiating and using and givesHence, after shifting the first sum by one index,Thus the derivative is a degree-at-most- Bézier curve whose control points are . They are vectors rather than necessarily positions on the original Bézier curve. This is the Bézier derivative control polygon.
Applying the preceding derivative identity repeatedly yields the Bézier derivative control polygon for every order:where the forward finite difference is andThe induction step multiplies by the remaining degree and takes one more finite difference. Derivatives above order vanish. In particular,If the actual parameter interval has length and is its normalized coordinate, derivatives in the original parameter acquire the additional factor . These formulas allow derivative evaluation and join tests using only the control polygon.
Let the first Bézier curve have degree and control points , and the next have degree and control points . Use one increasing parameter on the two adjacent intervals. For a continuous join, their endpoints must agree: . If each interval has length , the endpoint derivatives are and . Therefore the parametric first-derivative join of Bézier curves is exactlyFor equal degrees, the two polygon edges incident on the common endpoint are equal vectors. Equivalently, are collinear with the join as their midpoint. Agreement of edge directions without these lengths gives only geometric tangent continuity at a nonzero tangent, not equality of derivatives in the chosen parameter. The displayed condition also covers zero endpoint derivatives. With unequal interval lengths , the condition is instead .
A cubic polynomial on either half is determined by its endpoint positions and endpoint derivatives. Use normalized parameters on the first half and on the second, so that derivatives with respect to are half the derivatives with respect to . Evaluation of the Bernstein basis at the split givesIf the left control points are , endpoint positions give . The cubic endpoint-derivative formulas give and . On the right, , and . Substitution yieldsThese are exact restricted Bézier curves, since they match all four endpoint Hermite data of the respective cubics.
The construction is also the midpoint case of De Casteljau's algorithm. Form for , then , , and . The two polygons are and . Their common tangent edges satisfy , as required for equal half-intervals. Thus the triangular midpoint construction simultaneously evaluates the split point and supplies the two exact representations.
Put , , and . A point on each moving segment has the form and , with . Contact is therefore equivalent toThe contact time of translating line segments is the minimum feasible . This reduces the entire continuous-motion problem to three linear equations and linear inequalities.
In three-dimensional space form the matrix . If it is nonsingular, solveusing a stable linear solver. A candidate with in the unit interval and is the only contact event and hence the earliest one; otherwise no contact occurs. Check initial intersection explicitly, so an already touching pair returns time zero.
If is singular, use a rank-revealing factorization to test consistency. Write every solution as , with columns of spanning the null space, and minimize its time coordinate subject to the box and nonnegative-time constraints. This is a small linear programming problem. It handles parallel segments, collinear overlap, a continuum of contact times and segments degenerated to points. Infeasibility means no future contact. When , the relative geometry is stationary: initially disjoint segments never meet. The first contact is the least feasible nonnegative time, not just an intersection of the two supporting lines.
The same relative coordinates give the proximity time of translating line segments asThis is a convex norm-constrained problem, rather than the linear feasibility problem for contact. One can solve it as a small second-order cone problem. If the distance between the initial line segments is at most , the answer is zero; if no feasible point exists, the threshold is never reached.
For an elementary analytic algorithm, consider the nine combinations in which each of is either free, fixed at zero or fixed at one. In each case, minimize the squared distance over the free parameters. Writing for plus the fixed endpoint contributions, and for the columns belonging to free parameters, stationarity isIf the Gram matrix is nonsingular, is affine in time. Retain only the time interval on which its entries lie in . The residual is then , and feasibility reduces toIntersect its solution interval with and the free-parameter validity interval, and record the first point. Include the four endpoint–endpoint cases, where there are no unfixed segment parameters. Take the earliest valid candidate among all cases. The actual closest pair belongs to one of these faces of the parameter square, so this enumeration cannot miss the first approach.
The complications are the quadratic threshold equation, changes of the active closest-point feature and singular Gram matrices for parallel or degenerate segments. In a singular case, keep the affine family of minimizers and its feasibility bounds, or use the original convex problem; a pseudoinverse answer alone can fall outside the segment even when another minimizer is feasible. Constant-distance cases and tangential threshold contact must also be retained. Merely checking moving endpoints misses approaches between interior points.
Fix the indexing conventionwhere the subdivision arity is an integer. A change of the initial control can influence only indices after one step, where . After steps the possible descendant indices areLet be the smallest and largest active subdivision mask indices. Dividing by gives the enclosureTherefore the support of a stationary subdivision scheme, in initial control-grid units, is enclosed byFor the stated symmetric subdivision mask with active extremes , the width is . For a nonzero compactly supported basic limit function , this is an exact endpoint calculation: its refinement equation is . If is its right support endpoint, only the largest active subdivision mask index can contribute sufficiently close to the rightmost point of this sum; all smaller indices have argument beyond . Hence , giving . The left endpoint follows in the same way. This argument also excludes cancellation at an extreme for signed subdivision masks. The support for initial control is translated by . If the nominal subdivision mask was padded by zero coefficients, use its actual extremes; and a limiting subdivision curve has to exist before its support is meaningful. This calculation describes the entire possible influence region, rather than the width of a single refinement stencil on its finer grid.
There are no numerical continuity bounds determined by and alone: the subdivision mask coefficients matter. First check constant reproduction, for every residue , and convergence. For the usual stationary scalar scheme, two useful calculations are a uniform contraction test and a spectral obstruction test. Higher smoothness is tested with derived difference subdivision masks.
Write and . Using backward differences , the generating-function identityproves the subdivision difference scheme relation . Iterating gives . To test a candidate limit, suppose the requisite sum rules hold, so is a finite Laurent polynomial. The scaled derivative controls are refined by the subdivision maskwhose residue sums are one. Their first differences are refined byThe powers of are essential because each refinement shrinks parameter intervals by .
A lower continuity bound comes from proving uniform contraction. The infinity norm of one difference-refinement step is bounded byIf , adjacent derivative controls contract geometrically at every location. More generally, form the -step subdivision maskand test . This proves convergence of the constant-preserving derivative scheme to a continuous limit. One justification is to compare consecutive piecewise-linear interpolants: their difference is bounded by a constant times the maximum adjacent-control difference, and the geometrically decreasing bound is summable. To identify the limit as , use fixed-degree Cardinal B-spline interpolants of the original refined controls. Their th derivatives are sums of the scaled finite differences; convergence of both functions and derivatives gives . Testing successive supplies a guaranteed lower bound.
An upper continuity bound comes from an observable noncontracting shape mode. Build finite local subdivision matrices for on a refinement-invariant control neighborhood. For a digit their entries are , since the new index is . Restrict to the realizable difference space and discard modes that do not affect the limit. A word corresponds to a nested parameter location. If its product has an observable eigenvalue with , repetition of this word makes some scaled derivative differences grow rather than tend to zero. For a stable limit representation, regularity would force these differences to vanish; hence general-position data cannot have continuity. A modulus-one mode requires examination of whether it actually persists, rather than an automatic rounding rule.
The two calculations can be organized through the joint spectral radius of these restricted matrices:These norm and spectral bounds for subdivision regularity make the test computable from the subdivision mask. The right bound certifies all-word contraction when it is less than one; the left bound detects a repeated-word obstruction when it exceeds one. Longer products improve the tests. A single matrix's spectrum is not a substitute for controlling arbitrary products. The product estimates also appear in Charina's analysis of subdivision regularity; the strict contraction and observable-mode arguments above explain their respective roles.
A norm estimate controls the worst possible refined differences for every choice of the initial controls. Submultiplicativity turns a length- contraction into a bound for arbitrary long products, so it proves a certain number of continuous derivatives. Its absolute values can lose cancellations; failure of the estimate is inconclusive. It therefore gives a lower bound on smoothness.
Conversely, an observable eigenmode of a repeated local product exhibits a particular sequence of shrinking neighborhoods with inadequate decay. General-position controls have a nonzero coefficient in that mode, so greater derivative continuity is impossible. Special symmetric or polynomial data may suppress the bad mode; this is why the general-position qualification matters. The obstruction gives an upper bound on smoothness, while failure to find an obstruction proves nothing. A lower bound on spectral growth becomes an upper bound on smoothness because large surviving differences correspond to rough behavior.
For example, the binary Cardinal cubic B-spline subdivision mask has symbol , up to an irrelevant index shift. At derivative order , the first-difference subdivision mask is , whose maximum parity sum is : the limit is at least . At , , and the surviving difference mode does not decay. For generic controls the third derivative is piecewise constant with nonzero jumps, so the subdivision curve is not . Here the lower and upper tests determine the exact integer continuity, but they need not coincide for an arbitrary subdivision mask. Stability, sum rules and borderline modes must be handled explicitly before interpreting any numerical estimate as a continuity level.
The tensor-product surface basis is . If both univariate bases consist of nonnegative functions, thenIf both factors are strictly positive at the chosen parameters, their product is strictly positive there as well. Its support is the Cartesian product of the two factor supports. With partition of unity, this nonnegativity additionally places the parametric surface point in the convex hull of the active control points.
If each univariate basis sums to one, distribute the finite sums, or use local finiteness when the basis is infinite:Thus the tensor-product surface basis is a partition of unity. In particular, translating every control point by a fixed vector translates the parametric surface by precisely that vector, and constant control data produce a constant parametric surface.
Suppose in and in , including their respective knot joins. The mixed derivatives of the tensor-product surface basis areThese are continuous because each factor is continuous. A finite or locally finite control sum has the same property. In the usual total-order notation the parametric surface is therefore at least , and also has the stronger stated rectangular set of continuous mixed derivatives. Across a -knot its guaranteed order is , and across a -knot its guaranteed order is . No general improvement over a factor's smoothness is possible: setting and using recovers the univariate curve as a parametric surface constant in .
Let the univariate linear precision sites be , meaningThen their Cartesian-product grid is a linear precision set for the tensor-product surface basis:Indeed, the first coordinate is , and the second is . More generally, take controls . The resulting parametric surface is exactlyThis proves linear precision of a geometric basis and affine map reproduction, including arbitrary changes of the embedding plane. In fact the products also reproduce the bilinear coordinate , since ; affine precision is the requested consequence.
The core parametric surface interrogation is evaluation of the position and its derivatives through second order:Position answers point queries; first derivatives give the differential, tangent directions and normal vector; second derivatives supply curvature. An evaluator should also report the parameter domain, patch adjacency, boundary curves and knot or crease locations, and whether these derivatives exist at the queried point. At a discontinuity boundary it should provide the relevant one-sided limits rather than silently average them.
For spatial searches, provide restriction or subdivision into equivalent smaller patches and certified bounding volumes, with error estimates when an approximate mesh is used. These allow intersection and closest-point algorithms to reject remote patches and refine the remaining candidates. A useful interface therefore combines differential evaluation with domain/topology and enclosure information. Inverse parameter lookup, ray intersection and nearest-point search can be built from these primitives using subdivision and local root or minimization solves; they need not be presumed exact basic evaluations of every representation.
Evaluate all quantities at and assume a regular surface point, . The tangent plane passes through and is spanned by . ThusChoose the unit normal . The first fundamental form has coefficientswhile the second fundamental form has coefficientsTo derive the curvature formula, differentiate . This gives , , and . Therefore the shape operator , expressed in the tangent basis, isIts eigenvalues are the principal curvatures. Their product, the Gaussian curvature, is its determinant:Regularity ensures . Reversing changes the signs of and both principal curvatures but leaves unchanged. At a singular parameter point this quotient and the cross-product normal vector are undefined; an alternative regular chart or separate geometric analysis is required.
A useful subdivision curve interrogation supplies the following connected capabilities. It describes the parameter interval, open or closed topology, endpoints and break points; it evaluates the limit point and, where the scheme guarantees them, and ; and it refines or restricts an interval while retaining the mapping to the original parameter. It also provides enclosing bounds and a certified curve-to-chord error on each restricted piece. These are enough to build clipping, intersections, closest-point searches, tangents, curvature and adaptive sampling.
The enquiries concern the subdivision limit, not just a finite refined control polygon. For a stationary local refinement matrix , a limit vertex can be obtained from a normalized left eigenvector , , as . Derivatives use the appropriately scaled difference schemes or equivalent spline evaluation on regular intervals. The convergence and derivative hypotheses must actually hold for the scheme; no second derivative can be requested at an intrinsic crease.
If the subdivision mask is nonnegative and preserves constants, descendants and limit points lie in the relevant control-point convex hull, giving a useful enclosing volume. For subdivision masks with negative weights, that hull need not be an enclosure: the interface must supply another valid bound, for example from a proven refinement-error estimate. This distinction is important for safe spatial rejection in an algorithm.
The corresponding subdivision surface interrogation needs mesh connectivity and patch adjacency, boundary and crease flags, local coordinate charts with transition maps, and subdivision into smaller patches with their original-chart mappings. Its evaluation enquiry returns a limit point, tangent derivatives and a normal vector; second derivatives are supplied only where the limit is sufficiently smooth. Certified bounding volumes and patch approximation errors allow a hierarchy for intersection and proximity searches. Boundary-curve enquiries complete the interface for clipping.
On regular parts of a subdivision surface, these evaluations may use its equivalent tensor-product or box spline patch. Near an extraordinary subdivision vertex, the local subdivision matrix determines the limit position through its constant left eigenvector, and its tangent modes determine the normal vector under the scheme's characteristic map of a subdivision surface regularity conditions. Refinement alone does not establish those conditions. A subdivision surface may have a well-defined tangent plane there without possessing second derivatives or Gaussian curvature. An interrogation interface must distinguish these cases and can work on surrounding regular charts when a higher derivative is unavailable at the vertex itself.
Together, subdivision, bounds, topology and limit evaluation support ray–subdivision surface intersection: bounds eliminate irrelevant patches; surviving patches are refined, and regular candidate intersections are corrected using position and first derivatives. The returned intersection is a point of the limit subdivision surface with an error certificate, rather than automatically a point on the last control mesh.
Let the point light be at . For a subdivision curve point , its projected shadow lies on the ray beyond the subdivision curve:The shadow is the first intersection of that ray with the receiving subdivision surface after the subdivision curve point. Thus solveand retain the smallest admissible . This is the defining equation for shadow tracing for a subdivision curve.
First organize the subdivision surface patches into a bounding volume hierarchy. For a restricted subdivision curve interval, rays through its enclosing volume define an enclosing ray cone from ; subdivision surface bounds that do not meet this cone can be rejected. Refine surviving subdivision curve intervals and subdivision surface patches. For a fixed , isolate all possible ray intersections using those bounds, then correct each regular candidate with the Jacobian matrix for the Newton methodThe scalar triple product shows that is invertible exactly when . Enforce the patch domain and throughout correction, and choose the smallest valid . Bounds or validated root isolation, rather than a fixed list of subdivision curve samples, are needed if every shadow component is to be found.
Once a regular intersection is known, follow it as changes. Differentiating gives a useful predictor:Take a small predictor step in and apply a Newton method correction at the new subdivision curve parameter. Move through patch adjacency with its chart transition; shrink steps when derivatives or error estimates change rapidly. Subdivide further and test a geometric curve-to-chord bound to approximate the resulting shadow trace to a chosen tolerance.
Surface-boundary crossings terminate or clip a trace. If a ray has no admissible subdivision surface intersection, that subdivision curve parameter contributes no shadow on . At grazing contact the Jacobian is singular, so use interval subdivision and root isolation to detect the event and seed any outgoing branches. If several intersections are possible, recheck which is first; facing the light locally is helpful but is not a proof of global uniqueness. Open-curve endpoints and closed-curve seams must also be accounted for. With a compact represented geometry, transversal intersections and validated subdivision bounds, this algorithm traces every visible component; a purely sampled implementation gives only a tolerance-dependent approximation and cannot certify arbitrary tiny missed components.
Articles by others on the same topic
There are currently no matching articles.
