<node3d:onthefly>.getVertex

Get the position of the specified vertex

 

<node3d:onthefly>.getVertex(
    index    
    mode = viz.REL_LOCAL    

)

 

index

0-based index of the vertex. Negative index can also be used to reference from end of vertex list.


mode = viz.REL_LOCAL

One of the following mode:

Vertex modes

viz.REL_LOCAL
viz.ABS_LOCAL

Return the raw position of the vertex.

viz.REL_PARENT
viz.ABS_PARENT

Return the position of the vertex transformed by the nodes current transform matrix.

viz.REL_GLOBAL
viz.ABS_GLOBAL

Return the position of the vertex in the global coordinate system.


Remarks

This command will return the position of the vertex at the specified index.

Return Value

Vertex Position - [x,y,z]