Skip to content

Documentation / @ripl/3d / tessellateParametric

Function: tessellateParametric() ​

tessellateParametric(surface, uSegments, vSegments): Face3D[]

Defined in: 3d/src/elements/parametric.ts:211

Tessellates a parametric surface into a grid of quads with normals and UVs.

Parameters ​

ParameterTypeDescription
surfaceParametricSurfaceThe surface to tessellate.
uSegmentsnumberSubdivisions along the first parameter.
vSegmentsnumberSubdivisions along the second parameter.

Returns ​

Face3D[]

One quad per grid cell.