VolMesh.face_flatness

VolMesh.face_flatness(face, maxdev=0.02)[source]

Compute the flatness of a face.

Parameters:
faceint

The identifier of the face.

Returns:
float

The flatness.

Notes

compas.geometry.mesh_flatness function currently only works for quadrilateral faces. This function uses the distance between each face vertex and its projected point on the best-fit plane of the face as the flatness metric.