edge

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


xshade
shape
edge

List of Methods

remove Deletes an edge from a polygon mesh

List of Properties

active The selection state
active_order The order in which it was selected
sharpness The Edge Sharpness value
v0 The index of the vertex on one end
v1 The index of the vertex on the other end




Use when getting edges such as with xshade.scene().active_shape().edge(0).

Method Details

remove

Deletes an edge from a polygon mesh.
Faces and edges have separate structures, so if an edge is deleted the faces remain.

xshade.scene().active_shape().edge(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 edge 2 and update the object
xshade.scene().active_shape().edge(2).active = True
xshade.scene().active_shape().update()

active_order

The order in which it was selected.

  • Get
  • Set

Type :
  int

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

sharpness

The Edge Sharpness value.

  • Get
  • Set

Type :
  float : between 0.0 and 10.0

print xshade.scene().active_shape().edge(0).sharpness

v0

The index value of the vertex on one end.

  • Get
  • Set

Type :
  int

print xshade.scene().active_shape().edge(0).v0

v1

The index of the vertex on the other end.

  • Get
  • Set

Type :
  int

print xshade.scene().active_shape().edge(0).v1