Mesh3gs.from_meshgrid

classmethod Mesh3gs.from_meshgrid(dx, nx, dy=None, ny=None)

Create a mesh from faces and vertices on a regular grid.

Parameters
  • dx (float) – The size of the grid in the X direction.

  • nx (int) – The number of faces in the X direction.

  • dy (float, optional) – The size of the grid in the Y direction. Defaults to the value of dx.

  • ny (int, optional) – The number of faces in the Y direction. Defaults to the value of nx.

Returns

compas.datastructures.Mesh – A mesh object.