Block.face_flatness

Block.face_flatness(fkey, maxdev=0.02)

Compute the flatness of the mesh face.

Parameters:
fkeyint

The identifier of the face.

maxdevfloat, optional

A maximum value for the allowed deviation from flatness.

Returns:
float

The flatness.

Raises:
Exception

If the face has more than 4 vertices.

Warning

This method only makes sense for quadrilateral faces.

Notes

Flatness is computed as the ratio of the distance between the diagonals of the face to the average edge length. A practical limit on this value realted to manufacturing is 0.02 (2%).