Modify a vertex position of an On-The-Fly object
<node3d:onthefly>.setVertex( | |
index | |
[x,y,z] | |
mode = viz.ABS_LOCAL | # Positional argument |
) |
Vertex modes | |
viz.ABS_LOCAL | Set the raw position of the vertex. |
viz.REL_LOCAL | Add the position to the existing raw position. |
viz.ABS_PARENT | Set the position of the vertex in the coordinate frame of the parent node. |
viz.REL_PARENT | Add the vertex to the existing position in the coordinate frame of the parent node. |
viz.ABS_GLOBAL | Set the position of the vertex in the global coordinate frame. |
viz.REL_GLOBAL | Add the vertex to the existing position in the global coordinate frame. |
Note: If you are frequently changing the position of a vertex, then use the <node3d:onthefly>.dynamic command to speed up rendering.