nurbsSurface.disk
An exact flat disk on a plane, centred on its origin, its normal the plane’s normal.
Usage
NurbsSurface.disk(radius: number, plane?: Plane): Result<NurbsSurface>Parameters
radiusnumberThe radius, finite and > 0. Required. In model.
planePlaneThe plane: the disk is centred on its origin. Default
Plane.worldXY. In model.
Returns
Ok with a rational degree-(2, 1) surface whose v = domainV.t0 edge collapses to the centre (a pole) and whose v = domainV.t1 edge is the rim.
Errors
Guarantees
- normalAt(u, v) equals plane.zAxis away from the centre (Vector3.angleRad ≈ 0), null at the centre
- every point lies on the plane within radius of plane.origin
- The same result on every machine.
Example
const r = NurbsSurface.disk(1, Plane.worldXY) // → normal +z, once loadGeometryKernel() has run