Block.from_vertices_and_faces
- classmethod Block.from_vertices_and_faces(vertices, faces)
Construct a mesh object from a list of vertices and faces.
- Parameters:
- verticeslist[list[float]] | dict[int, list[float]]
A list of vertices, represented by their XYZ coordinates, or a dictionary of vertex keys pointing to their XYZ coordinates.
- faceslist[list[int]] | dict[int, list[int]]
A list of faces, represented by a list of indices referencing the list of vertex coordinates, or a dictionary of face keys pointing to a list of indices referencing the list of vertex coordinates.
- Returns:
compas.datastructures.Mesh
A mesh object.