addFacetFromGrowableArrays Method
Add a polygon to the evolving facets.
- add points to the polyface
- compute each point index as the point is added
- all data arrays are parallel to the point array
- point indices are added in reverse order if indicated by the builder state
addFacetFromGrowableArrays(points: GrowableXYZArray, normals: undefined | GrowableXYZArray, params: undefined | GrowableXYArray, colors: undefined | number[], edgeVisible?: boolean[]): void
Parameter | Type | Description |
---|---|---|
points | GrowableXYZArray | array of vertices in order around the facet |
normals | undefined | GrowableXYZArray | optional array of normals, one per vertex |
params | undefined | GrowableXYArray | optional array of uv-parameters, one per vertex |
colors | undefined | number[] | optional array of colors, one per vertex |
edgeVisible | boolean[] | optional array of flags, one per vertex, true iff edge starting at corresponding vertex is visible |
Returns - void
Defined in
- polyface/PolyfaceBuilder.ts Line 1481
Last Updated: 16 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.