MeshDeformer

A deformer which deforms child nodes stored within it,

Constructors

this
this(Node parent)

Constructs a new MeshGroup node

Destructor

~this
~this()
Undocumented in source.

Members

Functions

deform
void deform(vec2[] deformed, bool absolute)

Deforms the IDeformable.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserializes this node from a DataNode.

onPostUpdate
void onPostUpdate(DrawList drawList)

Called during the late update phase of a new frame.

onPreUpdate
void onPreUpdate(DrawList drawList)

Called during the early update phase of a new frame.

onRebuild
void onRebuild()

Called when the deformer's internal data should be rebuilt.

onSerialize
void onSerialize(DataNode object)

Serializes this node to a DataNode.

onUpdate
void onUpdate(float delta, DrawList drawList)

Called during the update phase of a new frame.

resetDeform
void resetDeform()

Resets the deformation for the IDeformable.

Properties

basePoints
const(vec2)[] basePoints [@property getter]

The base position of the deformable's points, in world space.

controlPoints
vec2[] controlPoints [@property getter]

The control points of the deformer.

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

The points which may be deformed by a deformer, in world space.

mesh
Mesh mesh [@property getter]

The mesh

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

Inherited Members

From Deformer

onSerialize
void onSerialize(DataNode object)

Serializes this node to a DataNode.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserializes this node from a DataNode.

onFinalize
void onFinalize(ModelState state)

Called when the node is to finalize its deserialization from disk.

onRebuild
void onRebuild()

Called when the deformer's internal data should be rebuilt.

onMoved
void onMoved(Node from, Node to, ptrdiff_t index)

Called when the node is moved from one parent to another.

~this
~this()
Undocumented in source.
toDeform
IDeformable[] toDeform [@property getter]

A list of the nodes to deform.

controlPoints
vec2[] controlPoints [@property getter]

The control points of the deformer.

controlPoints
vec2[] controlPoints [@property setter]
Undocumented in source.
basePoints
const(vec2)[] basePoints [@property getter]

The base position of the deformable's points.

deformBaseMatrix
Basis deformBaseMatrix [@property getter]

The base matrix of the object before any parameters have been applied.

deformMatrix
Basis deformMatrix [@property getter]

World matrix of the deformable object.

deformPoints
vec2[] deformPoints [@property getter]

The points which may be deformed by the deformer.

deform
void deform(vec2[] deformed, bool absolute)

Deforms the IDeformable.

deform
void deform(size_t offset, vec2 deform, bool absolute)

Deforms a single vertex in the IDeformable

resetDeform
void resetDeform()

Resets the deformation for the IDeformable.

rescan
void rescan()

Rescans the children of the deformer.

Meta