VolMesh.from_vertices_and_cells

classmethod VolMesh.from_vertices_and_cells(vertices, cells)[source]

Construct a volmesh object from vertices and cells.

Parameters:
verticeslist[list[float]]

Ordered list of vertices, represented by their XYZ coordinates.

cellslist[list[list[int]]]

List of cells defined by their faces.

Returns:
compas.datastructures.VolMesh

A volmesh object.

See also

to_vertices_and_cells()
from_obj(), from_meshgrid()