Import
ParametricGeometry is an addon, and must be imported explicitly, see Installation#Addons.
import { ParametricGeometry } from 'three/addons/geometries/ParametricGeometry.js';
Constructor
new ParametricGeometry( func : ParametricGeometry~Func, slices : number, stacks : number )
Constructs a new parametric geometry.
| func |
The parametric function. Default is a function that generates a curved plane surface. |
| slices |
The number of slices to use for the parametric function. Default is |
| stacks |
The stacks of slices to use for the parametric function. Default is |
Properties
.parameters : Object
Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.
Type Definitions
.Func( u : number, v : number, target : Vector3 )
Parametric function definition of ParametricGeometry.
| u |
The |
| v |
The |
| target |
The target vector that is used to store the method's result. |