Used for operations concerning a single edge of a polygon mesh.
xshade |
↑ |
shape |
↑ |
edge |
remove | Deletes an edge from a polygon mesh |
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).
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()
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 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.
Type :
int
print xshade.scene().active_shape().edge(0).active_order
The Edge Sharpness value.
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.
Type :
int
print xshade.scene().active_shape().edge(0).v0
v1
The index of the vertex on the other end.
Type :
int
print xshade.scene().active_shape().edge(0).v1