constructor Method
Constructor for facets.
PolyfaceData(needNormals: boolean = false, needParams: boolean = false, needColors: boolean = false, twoSided: boolean = true): PolyfaceData
| Parameter |
Type |
Description |
| needNormals |
boolean |
true to allocate empty normal data and index arrays; false (default) to leave undefined. |
| needParams |
boolean |
true to allocate empty uv parameter data and index arrays; false (default) to leave undefined. |
| needColors |
boolean |
true to allocate empty color data and index arrays; false (default) to leave undefined. |
| twoSided |
boolean |
true (default) if the facets are to be considered viewable from the back; false if they are amenable to backface culling. |
Returns - PolyfaceData
Defined in
Last Updated: 24 October, 2025