Skip to content
Shapemetry

Model - Surface functions

Every function callable as Surface.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.

FunctionReturnsDescriptionArgTypeMeaning
Surface.area(surface)numberUntrimmed surface area (closed form on a recovered plane / sphere / cylinder / torus, else Gauss–Legendre). Throws if trimmed.surfacesurfacethe NURBS surface
Surface.curvature(surface, u, v)numberMean curvature of the surface at (u, v).surfacesurfacethe NURBS surface
unumber0..1 along U
vnumber0..1 along V
Surface.isocurve(surface, parameter, direction)curveIsocurve at parameter in the given direction ('u' | 'v').surfacesurfacethe NURBS surface
parameternumber0..1 along the fixed direction
directionstring'u' or 'v' (the parameter held fixed)
Surface.normalAt(surface, u, v)vectorUnit surface normal at (u, v).surfacesurfacethe NURBS surface
unumber0..1 along U
vnumber0..1 along V
Surface.pointAt(surface, u, v)pointPoint on the surface at parameters (u, v) ∈ [0,1]².surfacesurfacethe NURBS surface
unumber0..1 along U
vnumber0..1 along V
Last updated: 📖 1 min readEdit on GitHub