offset · ·

A NURBS ball grown

offset/nurbs-ball-grown · offset, grow, nurbs, rational, pole, degenerate-edge

A ball of radius 5 centered on the origin, its whole surface one rational B-spline surface (a NURBS), the standard biquadratic sphere of geometry/nurbs-sphere: a 9 × 5 net whose first and last rows each collapse to a single point, a pole.

The surface is the tensor product of two rational quadratic curves. Around the axis (u), the unit circle of nine control points cᵢ = (1, 0), (1, 1), (0, 1), (−1, 1), (−1, 0), (−1, −1), (0, −1), (1, −1), (1, 0), with weights wᵢ = 1, √2/2, 1, √2/2, 1, √2/2, 1, √2/2, 1, on the knots (0, 0, 0, ¼, ¼, ½, ½, ¾, ¾, 1, 1, 1). Along the meridian (v), the semicircle from the south pole to the north of five control points (ρⱼ, zⱼ) = (0, −5), (5, −5), (5, 0), (5, 5), (0, 5), with weights vⱼ = 1, √2/2, 1, √2/2, 1, on the knots (0, 0, 0, ½, ½, 1, 1, 1). The net's control point (i, j) is (ρⱼ·cᵢ, zⱼ) = (ρⱼ cᵢₓ, ρⱼ cᵢᵧ, zⱼ), with weight wᵢvⱼ. Build the ball from that one face, closed on its seam and at its poles; do not use a sphere.

Then grow the ball by 2: offset its NURBS face outward along its normal by 2, the offset running through the poles, where the face's parameters pinch. Do not replace the face by a sphere before offsetting it.

The result is the ball of radius 7 centered on the origin.

expectedclosed form
volume1436.755044π(r + d)³/3, r = 5, d = 2
area615.75216014π(r + d)²

Drawing

Top view
Top
Isometric view
Isometric
Front view
Front
Right view
Right

Third-angle projection, the three views at one scale. Drawn from next.BREP's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepassrefused–pass †–refused–pass–pass–pass–passrefusedrefused
volume err.1.6e-162.2e-151.6e-161.6e-164.7e-164.2e-10
area err.3.7e-164.2e-141.8e-163.7e-160.0e+002.8e-10
time105 ms624 ms7.3 ms3.90 s1.03 s2.8 ms7.2 ms4.20 s27 ms1.1 ms
CPU time122 ms623 ms7.1 ms3.90 s1.03 s2.5 ms11 ms4.20 s27 ms950 µs
memory12.2 MB363.1 MB9.7 MB531.5 MB21.1 MB13.2 MB9.2 MB396.6 MB12.5 MB3.4 MB
LOC64872979704

† works around a missing feature. Pick an entry to see its solid, its measures and its code.

offset/nurbs-ball-grown.md, the case as written.