VolMesh.from_meshgrid

classmethod VolMesh.from_meshgrid(dx=10, dy=None, dz=None, nx=10, ny=None, nz=None)[source]

Construct a volmesh from a 3D meshgrid.

Parameters:
dxfloat, optional

The size of the grid in the x direction.

dyfloat, optional

The size of the grid in the y direction. Defaults to the value of dx.

dzfloat, optional

The size of the grid in the z direction. Defaults to the value of dx.

nxint, optional

The number of elements in the x direction.

nyint, optional

The number of elements in the y direction. Defaults to the value of nx.

nzint, optional

The number of elements in the z direction. Defaults to the value of nx.

Returns:
compas.datastructures.VolMesh