mesh_quads_to_triangles

compas.datastructures.mesh_quads_to_triangles(mesh, check_angles=False)[source]

Convert all quadrilateral faces of a mesh to triangles by adding a diagonal edge.

Parameters
  • mesh (compas.datastructures.Mesh) – A mesh data structure.

  • check_angles (bool, optional) – Flag indicating that the angles of the quads should be checked to choose the best diagonal.

Returns

None – The mesh is modified in place.