Computer aided geometric design studies computational representations, evaluation and manipulation of curves and regular surfaces, especially using splines and subdivision surfaces.
// Target: geometry-and-topology.bigb
The differential geometry of smooth surfaces studies their induced Riemannian metrics and intrinsic or extrinsic curvature. The first fundamental form measures lengths, while the second fundamental form and shape operator describe bending in an ambient Euclidean space. A regular parametric surface must have linearly independent tangent vectors : otherwise its parameters cannot provide a manifold chart with two independent directions.
For a sphere of radius , use colatitude and longitude :
Thus a change has arc length : equally spaced longitudes draw closer together toward a pole. The coordinate degeneracy at the poles belongs to this parametrization, not to the smooth surface.
Both principal curvatures of the sphere have magnitude and the same sign, giving Gaussian curvature . A plane has , and a circular cylinder also has because one principal curvature vanishes. These three familiar shapes show why visible bending alone cannot measure intrinsic Gaussian curvature.
Figure 1.
Visible bending and Gaussian curvature are different measurements
. Details.
First fundamental form Created 2026-09-24 Updated 2026-10-14
The first fundamental form of a smooth surface is the restriction of the ambient inner product to each tangent space . For a regular parametric surface , it is
Here means , not a componentwise square. The coefficients form the Gram matrix of the two coordinate tangent vectors. Regularity makes this a positive-definite matrix, so and .
To calculate the length of a curve , apply the chain rule and integrate its speed:
The same inner product gives the angle between nonzero tangent vectors through , and gives the area element as a positive density. One compact expression therefore supplies rulers, protractors, and surface area measurements.
For the lateral surface of a circular cylinder, take the circumferential arc length rather than the angle:
Direct inner products give , hence . This is exactly the Euclidean metric on the unrolled plane. For instance, a path with , , has length on either surface. Every corresponding path retains its length, not merely this example, so sufficiently small neighborhoods retain their intrinsic distances. The local isometry preserves angles and surface areas too. Globally is periodic with period : unrolling requires a seam, and the whole circular cylinder is not a single planar manifold chart.
Gaussian curvature Created 2026-09-24 Updated 2026-10-14
Rolling a sheet into a circular cylinder bends it without changing its internal lengths and angles. Fitting that same sheet smoothly onto a sphere requires distortion of its first fundamental form. Gaussian curvature distinguishes these situations: it measures the intrinsic curvature of a smooth surface, even though its simplest definition uses how the surface bends in Euclidean space.
The Gaussian curvature at a point is the determinant of the shape operator, or the product of the two principal curvatures:
Here is the first fundamental form and is the second fundamental form, with . Regularity makes . Reversing the unit normal negates and both principal curvatures, leaving Gaussian curvature unchanged. [ref]
The sign describes bending at the point: positive Gaussian curvature means the principal curvatures have the same nonzero sign, as at an elliptic point; negative Gaussian curvature means opposite signs, as on a saddle; zero Gaussian curvature means at least one principal curvature vanishes. Zero Gaussian curvature at a single point does not imply that a neighborhood is a plane. [ref]
Four worked models make the signs concrete:
Figure 1.
Plane, outward cylinder, outward sphere, and upward saddle compared by their principal curvatures and Gaussian curvature
. Details.
The patches use a common length unit, with for the sphere and circular cylinder. The marked red and blue curves have principal directions at the black point; the arrow is the chosen unit normal. For physical lengths, principal curvature and mean curvature have units of inverse length, while Gaussian curvature has units of inverse squared length. Rescaling a surface by divides its principal curvatures by and its Gaussian curvature by . Writing the saddle as restores an explicit length scale: .
The Theorema Egregium says that Gaussian curvature depends only on the first fundamental form and its first two coordinate derivatives. A local isometry therefore preserves Gaussian curvature, even if the shape operator and the principal curvatures change. [ref]
Here is the outline, rather than a full proof. The Gauss formula splits second derivatives of a parametric surface into tangential Christoffel symbols and the second fundamental form. The Christoffel symbols are determined by the first fundamental form and its first derivatives. Commuting the next partial derivatives gives the Gauss equation, which identifies with the intrinsic sectional curvature computed from the Riemann curvature tensor. Thus the apparently extrinsic product is determined by the Riemannian metric. [ref]
One can see the distinction directly by rolling a plane strip with coordinates into the circular cylinder . Both have , so the map is a local isometry, and is one-to-one on an open strip of width less than . Extending over all real numbers wraps around periodically; it does not give a global isometry between the entire plane and the entire circular cylinder. A nonempty open patch of a sphere cannot be flattened by a local isometry into a plane, because its Gaussian curvature cannot become zero. The obstruction concerns preservation of the first fundamental form, rather than a particular drawing or choice of seam.
For a regular parametric surface , the displayed surface integral counts each image point as many times as its preimages in , apart from sets of zero surface area. It equals the ordinary integral over the image when the parametrization is injective except on such sets. A periodic parametrization integrated over more than one period can give a different answer from integration over its image set. For example, with and gives parameter area , whereas the image circular cylinder has surface area .
Parametric surface 2026-10-14
A parametric surface is represented by a map . A regular patch has ; this cross product supplies its normal vector.
// Target: analysis.bigb
For a regular parametric surface , set
The first fundamental form is the induced Riemannian metric
The second fundamental form, for this choice of unit normal vector, is
The Gaussian curvature is the product of the principal curvatures, equivalently the determinant of the shape operator:
Reversing the normal reverses the second fundamental form and both principal curvatures, while leaving unchanged.
For a regular parametric surface , its tangent vectors are linearly independent. The first fundamental form is the induced inner product on the tangent plane, written
It measures squared lengths and angles; its determinant satisfies . Choose the unit normal
The second fundamental form, with shape operator , is
The subscript distinguishes the coefficient from a genus or a Riemannian metric. In these coordinates the shape operator has matrix , so the Gaussian curvature, the product of its two principal curvatures, is
Reversing reverses and both principal curvatures, leaving the Gaussian curvature unchanged.
Let be the horizontal rotation matrix through angle . Define the screw motion
Its linear part is an orthogonal matrix with determinant one, and its remaining part is a translation. Thus it is a proper Euclidean motion of Euclidean three-space, with .
In horizontal-vector notation the given parametric surface satisfies . Therefore
The defining circle in each horizontal plane is entirely parametrized by , so covers . The displayed equality and prove . This one-parameter subgroup preserves the dot products and cross products defining , and the chosen unit normal. Consequently their coordinate coefficients, and the Gaussian curvature, depend only on .
Set , , and . At , the first partial derivatives are
Their dot products give , , . Hence
Since , the parametric surface is regular everywhere. Its cross product and unit normal at are
The second partial derivatives at are
Their dot products with give and . Thus
Part (b) transports these first fundamental form and second fundamental form coefficients to every . Finally,
The last expression is the surface area element from . In particular the Gaussian curvature changes sign where does; it vanishes at modulo .
First interpret the surface integral through the given parametric surface, counting multiplicity. Set
Its derivative is
Using part (c), the fundamental theorem of calculus gives
On the other hand part (d), including its arc length factor, gives
and the corresponding expression for is . Subtraction proves
If , the parametric surface is injective on the rectangle, so this is exactly the stated surface integral over its image. It also remains the ordinary image integral at , since the repeated seam has zero surface area.
The assertion for arbitrary needs a multiplicity convention or the restriction . This omission is present in the native PDF. For example, take , , , . The image is the entire cylindrical band , since already covers a full turn. Its ordinary surface integral of Gaussian curvature is
But the difference of the two signed geodesic curvature integrals is . Thus ordinary integration over the image set makes the unrestricted assertion false. The boxed parameter integral is valid for all and and is the appropriate corrected statement. This distinction is the multiplicity of a parametrized surface integral.
A tensor-product surface basis is formed from two independent univariate basis families and on separate parameter intervals. Given a rectangular control net , its parametric surface is
The parameters and indices vary independently over a product domain. The representation can be evaluated first in either parameter, giving a convenient computational advantage. Assume a finite basis, or locally finite spline bases, so differentiation and summation below are justified locally.
For positivity, if each factor basis is nonnegative, then . If both factors are strictly positive at a point, their product is strictly positive there. Nonnegative weights are the usual geometric meaning of positivity; zero boundary weights are allowed. With partition of unity, this gives the local convex hull enclosure of the active control points.
For continuity, suppose the first family is and the second , including matching derivatives across their respective spline knots. On every polynomial piece, and by matching at the knot lines,
Every factor on the right is continuous in its own variable, so its product is jointly continuous. Thus all these mixed derivatives are continuous, in particular the surface is jointly . The separate coordinate smoothness can be better: orders in and in . For piecewise polynomials of degrees , an interior knot of multiplicity in the first factor normally gives matching in , inherited along that knot line; similarly for . The statement is an inherited lower bound. Special control points can cancel derivative jumps, so a particular surface may be smoother than a generic member of its basis.
For summation to unity, independent summation factors exactly:
This also explains why translations of all control points translate the surface by the same vector, as in affine equivariance of a geometric basis. These three arguments establish tensor-product inheritance of geometric basis properties directly from the factor identities.
A triangular Bézier patch is a non-tensor-product example. For barycentric parameters with , a quadratic patch is
The six basis functions have total degree two and sum to . Their index constraint and triangular parameter domain do not arise from two independently indexed univariate factors on a rectangle. An individual triangular polynomial could be embedded in another larger representation, but this triangular basis and control net are not a tensor-product surface definition.
Suppose in and in , including their respective knot joins. The mixed derivatives of the tensor-product surface basis are
These 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 .
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.
The tensor-product surface basis is . If both univariate bases consist of nonnegative functions, then
If 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.
Let the univariate linear precision sites be , meaning
Then 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 exactly
This 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.
Work first in the parameter rectangle of the parametric surface. Set . With linearly independent, the chain rule gives
The intersection is transversal precisely when the implicit normal vector and the parametric normal vector are not parallel. Consequently , and the implicit function theorem makes a locally regular parameter curve. This is the setting for transversal surface intersection tracing by a predictor-corrector continuation method.
Find one seed on the required component. Subdivide parameter patches, enclosing their images by bounding volumes and testing whether a certified range of excludes zero. For a positive-weight NURBS, the active control-point convex hull supplies a convenient enclosure; interval arithmetic can tighten the range of the composed function. Search the surviving patches for a bracketed root or a local corrected seed. Merely checking signs at four corners is inadequate: a small closed intersection can lie wholly inside a patch with the same corner signs. An adaptive or certified patch search, or a supplied seed, avoids this failure. For a sphere centered at , use and ; for a torus, use its implicit polynomial and its differentiated polynomial in the same algorithm.
At a corrected seed , an unnormalized parameter tangent vector and a unit spatial tangent vector are
Choose the sign consistently with the previous tangent vector. Normalize and predict , so is approximately a physical arc length step. Correct the predictor by Newton method applied to
The Jacobian has rows and . At the starting point its first row vanishes along , whereas its second row applied to is one. The two rows are therefore independent. The transverse-plane condition prevents the corrector from sliding arbitrarily along the intersection. Restrict correction to a neighborhood of the predictor, use damping, and reduce when correction fails or its displacement becomes excessive; this prevents jumps to another nearby branch.
To obtain a sufficiently dense sequence, impose a physical point-spacing bound, a bound on tangent turning, and a chord-error estimate. For local curvature , the small-step sagitta is approximately ; estimate curvature from successive tangent vectors and reduce until this and the desired spacing are acceptable. The correction residual should be small relative to the drawing tolerance. Uniform steps in or alone do not ensure spatial density because the surface metric can vary considerably.
For an open component, trace in both tangent directions from the seed. On reaching a parameter boundary, locate the endpoint by solving together with that boundary's parameter equation, rather than accepting an overshoot. For a closed component, stop only after nontrivial travel and return to the initial parameter location with compatible tangent orientation; near-coincidence in three-dimensional space alone can mistake a self-intersection or neighboring branch for closure. Cross periodic seams using the appropriate chart identification. Adaptive physical stepping, local correction, and component-aware termination give the required point sequence. A vanishing parameter gradient signals a tangency or singularity outside the transversal hypothesis and must be reported rather than passed through by this regular algorithm.
For a regular parametric surface , form , and define the offset evaluator
It is already a parametric surface with the same parameter domain, even if its coordinates no longer belong to the original polynomial or rational patch family. Point interrogation requires evaluations of and one normalization. For tangent or normal vector interrogation, differentiate the evaluator. For example,
and similarly for . The offset normal vector is the normalized cross product wherever it is nonzero. These derivatives also support intersection, projection and curvature calculations by the usual methods for parametric surfaces. For a variable normal offset, add and to the corresponding tangent derivatives.
With shape operator , the constant-distance offset differential is . Along a principal direction its factor is , where is a principal curvature. Consequently regular interrogation fails at ; on regular pieces the offset principal curvatures are with the continued normal orientation. Global self-intersections can occur even when both local factors are nonzero. Evaluate and differentiate the base surface and its normalized normal; an exact conversion back to the original patch type is unnecessary.
A plane section of a subdivision surface is a zero set of the plane functional evaluated on the limit parametric surface. Certified patch bounding volumes reject sign-definite patches. On a regular transverse section, and the parameter tangent is ; predictor-corrector continuation method traces a branch after every component has been isolated. Closed loops, tangencies, coplanar patches and extraordinary-vertex neighborhoods require more than corner-sign tests. Degenerate sections can contain isolated points or two-dimensional portions rather than only regular curves.
For a parametric surface , source parametric curve and eye , put and . The visible reflection locus satisfies , with the source and eye on the reflecting side. Rank two of the resulting Jacobian matrix gives a locally one-dimensional locus in by the implicit function theorem.
// Target: analysis.bigb