ForceDiagram.to_vertices_and_faces

ForceDiagram.to_vertices_and_faces(triangulated=False)[source]

Return the vertices and faces of a mesh.

Parameters

triangulated (bool, optional) – If True, triangulate the faces.

Returns

  • list[list[float]] – The vertices as a list of XYZ coordinates.

  • list[list[int]] – The faces as a list of lists of vertex indices.