@huukhanhnguyen/model / nodeMethods/faceValue
nodeMethods/faceValue
area()
area(
face):number
Area of the face (outer loop minus holes).
Parameters
face
Returns
number
centroid()
centroid(
face):Point
Centroid of the outer loop vertices.
Parameters
face
Returns
contains()
contains(
face,point):boolean
True if a point lies inside the face (within the outer loop, outside holes), projected onto the face's plane.
Parameters
face
point
Returns
boolean
normal()
normal(
face):Vector
Unit outward normal of the face's plane (from the outer loop).