Model - Face functions
Every function callable as Face.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.
| Function | Returns | Description | Arg | Type | Meaning |
|---|---|---|---|---|---|
Face.area(face) | number | Area of the face (outer loop minus holes). | face | face | faceEntity | the face |
Face.centroid(face) | point | Centroid of the face's outer loop vertices. | face | face | faceEntity | the face |
Face.contains(face, point) | binary | True if the point lies inside the face (within outer loop, outside holes). | face | face | faceEntity | the face |
point | point | pointEntity | the query point | |||
Face.normal(face) | vector | Unit outward normal of the face's plane. | face | face | faceEntity | the face |