Documentation / @sw-file-lib/geometry / Add2dPolygonOptions
Interface: Add2dPolygonOptions
ts
interface Add2dPolygonOptions extends AddFaceOptions {
readonly color?: ReadonlyColor;
readonly flip?: boolean;
readonly materialIndex?: number;
readonly z?: number;
}Defined in: builder.ts:117
Options for GeometryBuilder.add2dPolygon.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
| Vertex color applied to the generated face. (Range: 0-255) Defaults to white. | |||
|
| Whether to reverse the winding order of the generated triangles. Default ts | ||
|
| Material index assigned to the generated triangles.
Default ts | ||
|
| Z coordinate of the generated polygon. Default ts | ‐ |