VertexTransform¶
from acron.core import VertexTransform
- class VertexTransform¶
Bases:
Bases:
TypedWritableReferenceCountThis 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
digraph inheritance009869d45a { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "VertexTransform" [URL="acron.core.VertexTransform.html#acron.core.VertexTransform",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "VertexTransform" [arrowsize=0.75,style=""]; }- accumulate_matrix()¶
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 get_class_type()¶
- static get_global_modified()¶
Returns the currently highest
VertexTransform.get_modified()value in the world. This can be used as a quick way to determine if anyVertexTransformshave changed value recently.
- get_matrix()¶
- get_modified()¶
Returns a sequence number that’s guaranteed to change at least every time the value reported by
get_matrix()changes.
- static get_next_modified()¶
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.get_modified()calls return an increasing number in the same space, so thatTransformBlend.get_modified()is easy to determine. It is similar toGeom.get_modified(), but it is in a different space.
- property modified UpdateSeq¶
Returns a sequence number that’s guaranteed to change at least every time the value reported by
get_matrix()changes.
- mult_matrix()¶
Premultiplies this transform’s matrix with the indicated previous matrix, so that the result is the net composition of the given transform with this transform. The result is stored in the parameter “result”, which should not be the same matrix as previous.
- output()¶
- write()¶