| The rendering callback.
For the topology to be modified, the callback must return a tuple containing the new list of vertices and the new list of faces, organised as follows : .
- list of vertices : each vertex is decribed by [[x y z] color1 color2], with :
- x, y, z : floating-point coordinates of the vertex
- color1, color2 : primary and secondary colors for the vertex (hexadecimal RGB)
- list of faces : each face is described by [mat index1 u11 v11 u21 v21 index2 u21 v21 u22 v22 index3 u31 v31 u32 v32], with :
- mat : material
- index'i' : index of the 'i'th vertex of the face
- u'i''j', v'i''j' : u and v texture coordinates, at the 'i'th vertex, for the texture #'j'
For the topology to remain unchanged, the callback must return the CB_NOCHANGE constant.
|