Skip to content

Documentation / @sw-file-lib/geometry / AddExtrudedSideOptions

Interface: AddExtrudedSideOptions ​

ts
interface AddExtrudedSideOptions extends AddFaceOptions {
  readonly close?: boolean;
  readonly color?: ReadonlyColor;
  readonly flip?: boolean;
  readonly materialIndex?: number;
  readonly zRange: readonly [number, number];
}

Defined in: builder.ts:129

Options for GeometryBuilder.addExtrudedSides.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited from

close?

readonly

boolean

Whether to connect the last and first vertices.

Default

ts
false

‐

color?

readonly

ReadonlyColor

Vertex color applied to the generated face. (Range: 0-255)

Defaults to white.

AddFaceOptions.color

flip?

readonly

boolean

Whether to reverse the winding order of the generated triangles.

Default

ts
false

AddFaceOptions.flip

materialIndex?

readonly

number

Material index assigned to the generated triangles.

0 = opaque, 1 = glass, 2 = additive. Other values are not supported by Stormworks.

Default

ts
0

AddFaceOptions.materialIndex

zRange

readonly

readonly [number, number]

Start and end Z coordinates for the side strip.

‐