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:
meshcompas.datastructures.Mesh

A mesh object.

rootstr, optional

The key of the root face.

Returns:
None

The mesh is modified in place.

Raises:
Exception

If no all faces are included in the unnification process.