Skip to content
Shapemetry

@huukhanhnguyen/model / nodeMethods/faceValue

nodeMethods/faceValue

area()

area(face): number

Area of the face (outer loop minus holes).

Parameters

face

BrepData

Returns

number


centroid()

centroid(face): Point

Centroid of the outer loop vertices.

Parameters

face

BrepData

Returns

Point


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

BrepData

point

Point

Returns

boolean


normal()

normal(face): Vector

Unit outward normal of the face's plane (from the outer loop).

Parameters

face

BrepData

Returns

Vector

Last updated: 📖 1 min readEdit on GitHub