quadmesh_planarize

compas.geometry.quadmesh_planarize(M, kmax=500, maxdev=0.005)[source]

Planarize the faces of a quad mesh.

Parameters
  • M ([sequence[[float, float, float]], sequence[[int, int, int, int]]]) – A quad mesh represented by a list of vertices and a list of faces.

  • kmax (int, optional) – The maximum number of iterations.

  • maxdev (float, optional) – The maximum deviation from planar.

Returns

list – The coordinates of the new vertices.

Examples

>>>