# panda3d.core.VertexTransform¶

class VertexTransform

This is an abstract base class that holds a pointer to some transform, computed in some arbitrary way, that is to be applied to vertices during rendering. This is used to implement soft-skinned and animated vertices. Derived classes will define how the transform is actually computed.

Inheritance diagram

accumulateMatrix(accum: LMatrix4, weight: float) → None

Adds the value of this transform’s matrix, modified by the indicated weight, into the indicated accumulation matrix. This is used to compute the result of several blended transforms.

static getClassType() → TypeHandle
Return type

TypeHandle

static getGlobalModified(current_thread: Thread) → UpdateSeq

Returns the currently highest VertexTransform.getModified() value in the world. This can be used as a quick way to determine if any VertexTransforms have changed value recently.

Return type

getMatrix(matrix: LMatrix4) → None
getModified(current_thread: Thread) → UpdateSeq

Returns a sequence number that’s guaranteed to change at least every time the value reported by getMatrix() changes.

Return type

static getNextModified(current_thread: Thread) → UpdateSeq

Returns a monotonically increasing sequence. Each time this is called, a new sequence number is returned, higher than the previous value.

This is used to ensure that all VertexTransform.getModified() calls return an increasing number in the same space, so that TransformBlend.getModified() is easy to determine. It is similar to Geom.getModified(), but it is in a different space.

Return type

property modified

Returns a sequence number that’s guaranteed to change at least every time the value reported by getMatrix() changes.

Return type

multMatrix(result: LMatrix4, previous: LMatrix4) → None
output(out: ostream) → None
write(out: ostream, indent_level: int) → None