mesh_unify_cycles

compas.datastructures.mesh_unify_cycles(mesh, root=None)[source]

Unify the cycle directions of all faces.

Unified cycle directions is a necessary condition for the data structure to work properly. When in doubt, run this function on your mesh.

Parameters
  • mesh (Mesh) – A mesh object.

  • root (str, optional) – The key of the root face.

Returns

None – The mesh is modified in place.

Raises

AssertionError – If no all faces are included in the unnification process.