DeformedMesh

A mesh which recieves deformation data from the outside.

Constructors

this
this(Mesh parent)

Constructs a new DeformedMesh

this
this()

Constructs a new empty DeformedMesh

Destructor

~this
~this()
Undocumented in source.

Members

Functions

applyUVOffset
void applyUVOffset(vec2 offset)

Applies an offset to the deformed mesh' UV coordinates.

deform
void deform(vec2[] by)

Deform the mesh by the given amount.

deform
void deform(vec2 by)

Deforms the mesh uniformly by the given value.

deform
void deform(size_t offset, vec2 by)

Deforms a single vertex within the mesh by the given amount.

getTriangles
Triangle[] getTriangles()

Gets an array of every triangle in the mesh.

pushMatrix
void pushMatrix(mat4 matrix)

Pushes a matrix to the deformed mesh.

reset
void reset()

Resets the deformation.

Properties

bounds
rect bounds [@property getter]

Bounds of the deformed mesh.

elementCount
uint elementCount [@property getter]

How many indices are in the mesh.

indices
uint[] indices [@property getter]

The indices for the mesh.

parent
Mesh parent [@property getter]

The parent of the deformed mesh.

parent
Mesh parent [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
points
vec2[] points [@property getter]

The deformed points of the mesh.

triangleCount
uint triangleCount [@property getter]

How many triangles are in the mesh.

vertexCount
uint vertexCount [@property getter]

How many vertices are in the mesh.

vertices
VtxData[] vertices [@property getter]

The deformed vertices of the mesh.

Meta