quadmesh_planarize

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

Planarize the faces of a quad mesh.

Parameters:
Mtuple or compas.datastructures.Mesh

A quad mesh represented by a list of vertices and a list of faces or by a COMPAS mesh object.

kmaxint, optional

The maximum number of iterations. Default is 500.

maxdevfloat, optional

The maximum deviation from planar. Default is 0.005.

Returns:
list

The coordinates of the new vertices.

Examples

>>>