addTriangleFacet Method
Add a triangle to the polyface given its points in order around the edges.
addTriangleFacet(points: Point3d[] | GrowableXYZArray, params?: Point2d[], normals?: Vector3d[], colors?: number[]): void
| Parameter | Type | Description |
|---|---|---|
| points | Point3d[] | GrowableXYZArray | array of at least three vertices. |
| params | Point2d[] | (optional) array of at least three uv parameters. If undefined or insufficiently sizedor quad is degenerate, and params are needed, uv are calculated from points. |
| normals | Vector3d[] | (optional) array of at least three vectors. If undefined or insufficiently sized,and normals are needed, the normal is calculated from points. |
| colors | number[] | (optional) array of at least three colors. If undefined or insufficiently sized, andcolors are needed, color 0 is used. |
Returns - void
Defined in
- polyface/PolyfaceBuilder.ts Line 768
Last Updated: 06 December, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.