Algorithm Search⌘K

Definitioncore

Offset surface

Also called parallel surface.

The surface at a constant distance d along the normal of a given surface, which can self-intersect where d exceeds the radius of curvature.

The offset surface of a regular parametric surface S(u,v)S(u, v) at the signed distance dd is the surface Od(u,v)=S(u,v)+d N(u,v)O_d(u, v) = S(u, v) + d \, N(u, v), where NN is the unit normal. It is the 3D analog of the offset curve. An offset has the same normal as the surface at corresponding points, and its principal curvatures follow from those of the surface. Where dd reaches a principal radius of curvature on the concave side, the offset has a singular point, and beyond that it folds over and intersects itself. The unit normal contains a square root, so the offset of a polynomial or rational surface is not rational in general, and CAD systems store an approximation.

Definition

Let S:D→R3S : D \to \mathbb{R}^3 be a regular parametric surface, with unit normal

N(u,v)=Su×Sv∣Su×Sv∣.N(u, v) = \frac{S_u \times S_v}{\left| S_u \times S_v \right|}.

For a real number dd, the offset surface of SS at distance dd is the map

Od(u,v)=S(u,v)+d N(u,v),(u,v)∈D.O_d(u, v) = S(u, v) + d \, N(u, v), \qquad (u, v) \in D.

For d>0d > 0 it lies on the side of NN, and for d<0d < 0 on the other side. For an implicit surface f=0f = 0 with ∇f≠0\nabla f \ne 0, the same definition uses N=∇f/∣∇f∣N = \nabla f / |\nabla f|.

Three facts follow from the derivatives. Write κ1,κ2\kappa_1, \kappa_2 for the principal curvatures of SS with the sign convention that Nu=−κiSuN_u = -\kappa_i S_u along a principal direction (the Weingarten equations; see fundamental forms and surface curvature), and H=(κ1+κ2)/2H = (\kappa_1 + \kappa_2)/2, K=κ1κ2K = \kappa_1 \kappa_2.

  1. Same tangent plane. NuN_u and NvN_v are perpendicular to NN, since N⋅N=1N \cdot N = 1. So Ou=Su+dNuO_u = S_u + d N_u and Ov=Sv+dNvO_v = S_v + d N_v lie in the tangent plane of SS, and OdO_d has the normal ±N\pm N wherever it is regular.
  2. The area factor. Ou×Ov=(1−2Hd+Kd2) (Su×Sv)=(1−dκ1)(1−dκ2) (Su×Sv)O_u \times O_v = (1 - 2Hd + Kd^2) \, (S_u \times S_v) = (1 - d\kappa_1)(1 - d\kappa_2) \, (S_u \times S_v). So OdO_d is regular exactly where d≠1/κ1d \ne 1/\kappa_1 and d≠1/κ2d \ne 1/\kappa_2. Its normal is +N+N where the factor is positive and −N-N where it is negative.
  3. Curvatures of the offset. At a regular point, OdO_d has the same principal directions as SS and the principal curvatures κi/(1−dκi)\kappa_i / (1 - d\kappa_i), equivalently the principal radii 1/κi−d1/\kappa_i - d.

So the offset is regular for all ∣d∣<ρmin⁡|d| < \rho_{\min}, where ρmin⁡\rho_{\min} is the smallest principal radius of curvature 1/∣κi∣1/|\kappa_i| over the surface. Past a radius of curvature, the factor in fact 2 changes sign, the offset turns over along a cusp edge, and it intersects itself. A second kind of self-intersection is global: two points of SS that are far apart along the surface but close in space give offset points that meet. Both kinds must be removed to get the trimmed offset, the part of OdO_d whose points are at distance exactly ∣d∣|d| from SS. The trimmed offset of a closed surface is a level set of the unsigned distance to SS, which for the boundary of a solid is a level set of the signed distance function.

Rationality. If SS is polynomial or rational, Su×SvS_u \times S_v is polynomial or rational, but its length is the square root of a polynomial, and in general OdO_d is not rational. The exceptions include planes, spheres, circular cylinders and cones, and tori, whose offsets are surfaces of the same type, and the surfaces with a rational unit normal, the analog of Pythagorean hodograph curves.

Examples and non-examples

  • A plane. S(u,v)=(u,v,0)S(u, v) = (u, v, 0) has N=(0,0,1)N = (0, 0, 1), both curvatures 00, and Od(u,v)=(u,v,d)O_d(u, v) = (u, v, d). Every offset is regular.
  • A sphere. The sphere of radius RR with the outward normal has κ1=κ2=−1/R\kappa_1 = \kappa_2 = -1/R in the convention above. The factor is (1+d/R)2(1 + d/R)^2 and the offset is the sphere of radius R+dR + d. At d=−Rd = -R the whole offset collapses to the center, and for d<−Rd < -R it is the sphere of radius ∣R+d∣|R + d| with the normal turned inward.
  • A cylinder. The cylinder of radius RR has the radii RR around the axis and ∞\infty along it. The offset is the coaxial cylinder of radius R+dR + d, which collapses to the axis at d=−Rd = -R.
  • A torus. The torus with axis radius RR and tube radius r<Rr < R offsets to the torus with radii RR and r+dr + d. At d=−rd = -r the tube collapses to its core circle.
  • A paraboloid. z=(x2+y2)/2z = (x^2 + y^2)/2 with the upward normal has both principal radii equal to 11 at the origin, with the centers of curvature above the surface. The offset with d>1d > 1 has a fold near the axis: the points of the offset near x=y=0x = y = 0 come from a ring of surface points and overlap. A ball of radius d>1d > 1 cannot touch the inside of the paraboloid at its bottom point. This is the case of a ball-end cutter that is too large for a concave region.
  • A bicubic patch. The offset of a general bicubic patch is not a polynomial or rational surface. It is approximated, for example by fitting bicubic patches to sampled offset points and checking the error, as Farouki did.

Non-examples:

  • A surface with a crease. At an edge where two faces meet at an angle, the normal jumps. The two face offsets leave a gap on the convex side and overlap on the concave side. The offset of a solid with edges fills the gap with a piece of a cylinder around the edge, which is not an offset surface of either face; see solid offsetting.
  • A displacement by a non-unit normal. S+d (Su×Sv)S + d \, (S_u \times S_v) is rational, but its points are not at a constant distance from SS, so it is not an offset.
  • The offset curve is the same construction for a plane curve, and curve offsetting is its approximation problem. The surface case has two radii of curvature per point instead of one.
  • Solid offsetting grows or shrinks a solid by a distance rr. Its boundary consists of trimmed offsets of the faces and of pieces around the edges and vertices, which the Rossignac and Requicha method builds from a CSG tree.
  • The spine of a rolling-ball blend of radius rr is the intersection of the offsets at distance rr of the two surfaces.
  • The cutter location surface of a ball-end mill of radius rr is the offset of the part surface at distance rr; see cutter location data.
  • The self-intersections of offsets occur near the medial axis: the global self-intersections of the inward offset at distance dd lie on the medial axis, at the centers of the balls of radius dd inside the solid that touch its boundary at two or more points.

References

  1. Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 11, Offset curves and surfaces, Section 11.3, Offset surfaces, Section 11.4, Pythagorean hodograph, and Section 11.5, General offsets
  2. Takashi Maekawa, An overview of offset curves and surfaces, Computer-Aided Design 31(3), 165 to 173, 1999, the whole survey (the definition, the rationality question, approximation methods and self-intersections of offsets)
  3. Rida T. Farouki, The approximation of non-degenerate offset surfaces, Computer Aided Geometric Design 3(1), 15 to 43, 1986, the whole paper (the regularity of the offset in terms of the principal radii of curvature, and the approximation of offsets by bicubic patches)
  4. Jaroslaw R. Rossignac and Aristides A. G. Requicha, Offsetting operations in solid modelling, Computer Aided Geometric Design 3(2), 129 to 148, 1986, the offsets of faces, edges and vertices that make up the offset of a solid

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/8YJHX6/text.yaml