Used for operations concerning a single vertex of a polygon mesh.
xshade |
↑ |
shape |
↑ |
vertex |
remove | Deletes the vertex |
active | The selection state |
active_order | The order in which the vertex was selected |
normal | The vertex normal |
position | The coordinate position |
skin | The vertex skin |
Used after getting a vertex with a method such as xshade.scene().active_shape().vertex(0).
remove
Deletes the vertex.
xshade.scene().active_shape().vertex(0).remove()
active
The selection state.
Type :
bool
If the Figure Window or object is not updated after setting this value, the change will not be reflected immediately.
#Select vertex 0 and update the object
xshade.scene().active_shape().vertex(0).active = True
xshade.scene().active_shape().update()
active_order
The order in which the vertex was selected.
Type :
int
print xshade.scene().active_shape().vertex(0).active_order
normal
print xshade.scene().active_shape().vertex(0).normal
position
The coordinate position.
Type :
vec3
print xshade.scene().active_shape().vertex(0).position
skin
#Output the number of skin binds at vertex 0
print xshade.scene().active_shape().vertex(0).skin.number_of_binds