vertex

Used for operations concerning a single vertex of a polygon mesh.


xshade
shape
vertex

List of Methods

remove Deletes the vertex

List of Properties

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).

Method Details

remove

Deletes the vertex.

xshade.scene().active_shape().vertex(0).remove()

Property Details

active

The selection state.

  • Get
  • Set

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.

  • Get
  • Set

Type :
  int

print xshade.scene().active_shape().vertex(0).active_order

normal

The vertex normal.

  • Get
  • Set

Type :
  float3
Only possible to get polygon meshes with setup_normal set.

print xshade.scene().active_shape().vertex(0).normal

position

The coordinate position.

  • Get
  • Set

Type :
  vec3

print xshade.scene().active_shape().vertex(0).position

skin

The vertex skin.

  • Get
  • Set

Type :
  skin object
See also :
  skin

#Output the number of skin binds at vertex 0
print xshade.scene().active_shape().vertex(0).skin.number_of_binds