Weighting interface for meshes.
Public Member Functions | |
int | ClusterBegin (int pIndex=-1) |
Begin cluster definition. | |
int | ClusterEnd () |
End cluster definition. | |
LinkSetName (str pName, int pLinkNumber) | |
Set the name of a link. | |
str | LinkGetName (int pLinkNumber) |
Get the name of a link. | |
LinkRemove (int pLinkNumber) | |
Remove a link. | |
int | LinkGetCount () |
Get number of links. | |
LinkSetModel (FBModel pModel) | |
Set model to a link. | |
FBModel | LinkGetModel (int pLinkNumber) |
Get model from a link. | |
FBModel | LinkGetAssociateModel (int pLinkNumber) |
Get model associated with link. | |
LinkClearUnused (float pThreshold=-1.0) | |
Remove all unused links. | |
LinkSetCurrentVertex (int pLinkIndex, int pPointIndex) | |
Link at current vertex. | |
int | LinkGetVertexIndex (int pIndex) |
Get current vertex at link. | |
VertexSetTransform (FBVector3 pPosition, FBVector3 pRotation, FBVector3 pScaling) | |
Set transform of a cluster set. | |
VertexGetTransform (FBVector3 pPosition, FBVector3 pRotation, FBVector3 pScaling) | |
Get transform of a cluster set. | |
VertexAdd (int pVertexIndex, float pWeight) | |
Add a vertex to a cluster. | |
VertexRemove (int pVertexIndex) | |
Remove a vertex from a cluster. | |
int | VertexGetCount () |
Get the number of vertices. | |
int | VertexGetNumber (int pIndex) |
Get vertex number. | |
float | VertexGetWeight (int pIndex) |
Get vertex weight. | |
VertexSetWeight (float pWeight, int pIndex) | |
Set vertex weight. | |
VertexClear () | |
Clear all linked vertices. | |
Public Attributes | |
FBPropertyClusterMode | ClusterMode |
Read Write Property: Cluster mode. | |
FBPropertyBase | ClusterAccuracy |
Read Write Property: Cluster accuracy. | |
Protected Member Functions | |
__init__ (FBModel pModel) | |
Constructor. |
__init__ | ( | FBModel | pModel | ) | [protected] |
Constructor.
protected access, call FBModel.Cluster instead.
pModel | Parent model in question. |
Begin cluster definition.
pIndex | Link index. |
int ClusterEnd | ( | ) |
Set the name of a link.
pLinkNumber | Number value of link to name. |
pName | Name of the link. |
Get the name of a link.
pLinkNumber | Number value of link to get name from. |
pLinkNumber
. LinkRemove | ( | int | pLinkNumber | ) |
int LinkGetCount | ( | ) |
LinkSetModel | ( | FBModel | pModel | ) |
Get model from a link.
pLinkNumber | Number value of link to get model from. |
pLinkNumber
. Get model associated with link.
pLinkNumber | Number value of link to get associated model from. |
pLinkNumber
. LinkClearUnused | ( | float | pThreshold = -1.0 | ) |
Remove all unused links.
pThreshold | Weight value under which links are considered unused (default=-1). |
Link at current vertex.
pLinkIndex | Index of link to add vertex to. |
pPointIndex | Index of vertex to add. |
Get current vertex at link.
pIndex | Index of link to get vertex from. |
pIndex
VertexSetTransform | ( | FBVector3 | pPosition, |
FBVector3 | pRotation, | ||
FBVector3 | pScaling | ||
) |
Set transform of a cluster set.
pPosition | Position transform. |
pRotation | Rotation transform. |
pScaling | Scaling transform. |
VertexGetTransform | ( | FBVector3 | pPosition, |
FBVector3 | pRotation, | ||
FBVector3 | pScaling | ||
) |
Get transform of a cluster set.
pPosition | Position transform. |
pRotation | Rotation transform. |
pScaling | Scaling transform. |
Add a vertex to a cluster.
pVertexIndex | Index of vertex to add. |
pWeight | Weight to give to vertex. |
VertexRemove | ( | int | pVertexIndex | ) |
Remove a vertex from a cluster.
pVertexIndex | Index of vertex to remove. |
int VertexGetCount | ( | ) |
Get vertex number.
pIndex | Index of link to get vertex from. |
pIndex
Get vertex weight.
pIndex | Index of link to get vertex from. |
pIndex
. Set vertex weight.
pIndex | Index of link to get vertex from. |
pWeight | Weight to give to vertex. |
VertexClear | ( | ) |
Clear all linked vertices.
FBPropertyClusterMode ClusterMode |
Read Write Property: Cluster mode.
FBPropertyBase ClusterAccuracy |
Read Write Property: Cluster accuracy.