vispy.geometry.polygon.
PolygonData
Bases: object
object
Polygon class for data handling
Vertex coordinates. If faces is not specified, then this will instead be interpreted as (Nf, 3, 3) array of coordinates.
Constraining edges specified by vertex indices.
Indexes into the vertex array.
Notes
All arguments are optional.
add_vertex
Adds given vertex and retriangulates to generate new faces.
The vertex to add.
convex_hull
Return an array of vertex indexes representing the convex hull.
If faces have not been computed for this mesh, the function computes them. If no vertices or faces are specified, the function returns None.
edges
Return an array (Nv, 2) of vertex indices.
If no vertices or faces are specified, the function returns None.
faces
Return an array (Nf, 3) of vertex indexes, three per triangular face in the mesh.
triangulate
Triangulates the set of vertices and stores the triangles in faces and the convex hull in convex_hull.
vertices
Return an array (Nf, 3) of vertices.
If only faces exist, the function computes the vertices and returns them. If no vertices or faces are specified, the function returns None.