Mesh.from_meshgrid
- classmethod Mesh.from_meshgrid(dx, nx, dy=None, ny=None)[source]
Construct a mesh from faces and vertices on a regular grid.
- Parameters:
- dxfloat
The size of the grid in the X direction.
- nxint
The number of faces in the X direction.
- dyfloat, optional
The size of the grid in the Y direction. Defaults to the value of dx.
- nyint, optional
The number of faces in the Y direction. Defaults to the value of nx.
- Returns:
compas.datastructures.Mesh
A mesh object.