nurbsSurface.elevateDegree
The same surface with its degree in one direction raised by times.
Usage
surface.elevateDegree(dir: SurfaceDirection, times?: number): Result<NurbsSurface>Parameters
dirSurfaceDirectionThe direction: u runs along the rows, v along the columns. Required. One of
u,v.timesnumberHow many degrees to add; a non-negative integer (fractions are truncated, 0 is a no-op). Default
1. In count.
Returns
Ok with a surface of degreeU + times (u) or degreeV + times (v), the same domains and shape.
Errors
Guarantees
- degreeU (u) or degreeV (v) grows by times
- result.pointAt(u, v) is within 1e-12 of pointAt(u, v) everywhere
- The same result on every machine.
Example
const s = NurbsSurface.create([[Point3.of(0, 0, 0), Point3.of(0, 2, 0)], [Point3.of(3, 0, 0), Point3.of(3, 2, 0)]], 1, 1).value
const r = s.elevateDegree('u') // → degreeU 2, once loadGeometryKernel() has run