nurbsSurface.disk

An exact flat disk on a plane, centred on its origin, its normal the plane’s normal.

GeometricSince 0.4.0

Usage

TypeScript
NurbsSurface.disk(radius: number, plane?: Plane): Result<NurbsSurface>

Parameters

  • radiusnumber

    The radius, finite and > 0. Required. In model.

  • planePlane

    The 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

TypeScript
const r = NurbsSurface.disk(1, Plane.worldXY) // → normal +z, once loadGeometryKernel() has run

See also