mesh_dual

compas.datastructures.mesh_dual(mesh, cls=None)[source]

Construct the dual of a mesh.

Parameters
  • mesh (Mesh) – A mesh object.

  • cls (Mesh, optional [None]) – The type of the dual mesh. Defaults to the type of the provided mesh object.

Returns

Mesh – The dual mesh object.

Examples

>>>