Class Lattice
Constructors
constructor
-
Creates a new Lattice
Parameters
Optionaloptions: Partial<ILatticeOptions>options for creating
Returns Lattice
Accessors
cell Size
-
get cellSize(): Vector3
Gets the size of each cell in the lattice
Returns Vector3
data
-
get data(): Vector3[][][]
Gets the data of the lattice
Returns Vector3[][][]
max
-
get max(): Vector3
Gets the max bounds of the lattice
Returns Vector3
min
-
get min(): Vector3
Gets the min bounds of the lattice
Returns Vector3
position
-
get position(): Vector3
Gets the lattice position in object space
Returns Vector3
resolution X
-
get resolutionX(): number
Gets the resolution on x axis
Returns number
resolution Y
-
get resolutionY(): number
Gets the resolution on y axis
Returns number
resolution Z
-
get resolutionZ(): number
Gets the resolution on z axis
Returns number
size
-
get size(): Vector3
Gets the size of the lattice along each axis in object space Updating the size requires you to call update afterwards
Returns Vector3
Methods
deform
-
Apply the lattice to a set of points
Parameters
- positions: FloatArray
vertex data to deform
Optionaltarget: anyoptional target array to store the result (operation will be done in place in not defined)
Returns void
- positions: FloatArray
deform Mesh
get Class Name
-
Returns string
the string "Lattice"
update
-
Update of the lattice data
Returns void
update Internals
-
Update the lattice internals (like min, max and cell size)
Returns void
Class used to represent a lattice
See