Interface ExtrusionOptions

Optional arguments for an extrusion.

Hierarchy

Properties

curveScales?: number[]

The scale of each point in the curve. If omitted, then each curve point will have a scale of 1.

endBaseUVs?: vec2[]

The UVs for the end base. Must either match the amount of points in the base's polyline, or exceed by one if the UVs don't connect back.

endMaterial?: null | Material

The material used for the end base of the extrusion.

hints?: HintMap

How many sub-divisions should there be around the radial axis?

maxSmoothAngle?: number

The maximum smoothing angle for auto-smoothing. Default is close to 45 degrees.

segmentMaterial?: null | Material

The material used for the sides (segments) of the extrusion.

segmentsUVs?: [startV: null | number, endV: null | number, segmentsUs: null | number[]]

A tuple containing the configuration for the side (segment) UVs. The first member contains the V value at the start of the extrusion (0 by default). The second member contains the V value at the end of the extrusion (1 by default). The third member contains a list of U values for each point in the polyline, with an optional extra U value for the wrap-around point; if null, then this will be automatically generated by evenly distributing U values from 0 to 1 along each point in the polyline with a wrap-around point.

smoothNormals?: boolean

Should the extrusion be auto-smoothed? False by default.

startBaseUVs?: vec2[]

The UVs for the starting base. Must either match the amount of points in the base's polyline, or exceed by one if the UVs don't connect back.

startMaterial?: null | Material

The material used for the starting base of the extrusion.

Generated using TypeDoc