Skip to content

Documentation / scene / CylinderCreationOptions

Interface: CylinderCreationOptions

Defined in: libs/scene/src/shapes/cylinder.ts:9

Creation options for cylinder shape

Extends

Properties

bottomRadius?

optional bottomRadius?: number

Defined in: libs/scene/src/shapes/cylinder.ts:11

Top radius, default is 1.0 *


topRadius?

optional topRadius?: number

Defined in: libs/scene/src/shapes/cylinder.ts:13

Bottom radius, default is 1.0


topCap?

optional topCap?: boolean

Defined in: libs/scene/src/shapes/cylinder.ts:15

Generate top cap, default is true


bottomCap?

optional bottomCap?: boolean

Defined in: libs/scene/src/shapes/cylinder.ts:17

Generate bottom cap, default is true


height?

optional height?: number

Defined in: libs/scene/src/shapes/cylinder.ts:19

Height, default is 1.0


heightDetail?

optional heightDetail?: number

Defined in: libs/scene/src/shapes/cylinder.ts:21

Height detail, default is 1


radialDetail?

optional radialDetail?: number

Defined in: libs/scene/src/shapes/cylinder.ts:23

Radial detail, default is 20


anchor?

optional anchor?: number

Defined in: libs/scene/src/shapes/cylinder.ts:25

Anchor point, default is 0


needNormal?

optional needNormal?: boolean

Defined in: libs/scene/src/shapes/shape.ts:12

true if we need to calculate normals for the shape

Inherited from

ShapeCreationOptions.needNormal


needTangent?

optional needTangent?: boolean

Defined in: libs/scene/src/shapes/shape.ts:14

true if we need to calculate tangents for the shape

Inherited from

ShapeCreationOptions.needTangent


needUV?

optional needUV?: boolean

Defined in: libs/scene/src/shapes/shape.ts:16

true if we need to calculate texture coordinates for the shape

Inherited from

ShapeCreationOptions.needUV


transform?

optional transform?: Matrix4x4

Defined in: libs/scene/src/shapes/shape.ts:18

Transform matrix for the shape

Inherited from

ShapeCreationOptions.transform

Released under the MIT License.