5.85. Vertex Fdp (element)

<vertex> ‐ A fdp vertex in a subdivision (a mesh)

5.85.1. Attributes

NameTypeDefaults
indexINTEGERNone (required)
sizeINTEGERNone (required)

5.85.2. Description

This element defines a fdp vertex in a subdivision (a mesh). Fdp vertices are used to define the weights of the keypoints in order to control the vertex displacements.

The index attribute defines the index of the controlled vertex vc. The k value of the size attribute defines the number of keypoints that control the vertex vc.

This element must contain k 4-uples made of a keypoint index ki and 3 keypoint weights wxi, wyi, and wzi. The displacement of vc is computed from the k translations txi, tyi, and tzi associated with each keypoints ki as follows:

Equation 5-4. Linear Interpolation

5.85.3. Expected child

None.

5.85.4. Expected values

k 4-uples made of 1 integer value (the keypoint index) and 3 float values (the wx, wy, wz weights of the tx, ty, tz translation coordinates).

5.85.5. Example

The example below defines the 30th fdp vertex that is controlled by the 5th, 7th, and 27th keypoints. Its x-translation is 0.318388 × tx5, its y-translation is 0.55718 × ty5 - 0.00536683 × ty7 - 0.179829 × ty27, and its z-translation is 0.

<vertex index="30" size="3">
  5  0.318388  0.55718       0 
  7  0         -0.00536683   0 
  27 0         -0.179829     0 
</vertex/>