centroidAreaNormal MethodStatic
Return a Ray3d with:
origin
is the centroid of the polygon,direction
is a unit vector perpendicular to the polygon plane,a
is the polygon area.
centroidAreaNormal(points: IndexedXYZCollection | Point3d[], result?: Ray3d): undefined | Ray3d
Parameter | Type | Description |
---|---|---|
points | IndexedXYZCollection | Point3d[] | the polygon vertices in order. Points can lie in any plane. First and last point do not have to be equal. |
result | Ray3d | optional pre-allocated result to populate and return. |
Returns - undefined | Ray3d
Defined in
- geometry3d/PolygonOps.ts Line 560
Last Updated: 07 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.