Documentation / scene / TorusCreationOptions
Interface: TorusCreationOptions
Defined in: libs/scene/src/shapes/torus.ts:9
Creation options for torus shape
Extends
Properties
needNormal?
optionalneedNormal?: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?
optionalneedTangent?: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?
optionalneedUV?:boolean
Defined in: libs/scene/src/shapes/shape.ts:16
true if we need to calculate texture coordinates for the shape
Inherited from
transform?
optionaltransform?:Matrix4x4
Defined in: libs/scene/src/shapes/shape.ts:18
Transform matrix for the shape
Inherited from
ShapeCreationOptions.transform
numSlices?
optionalnumSlices?:number
Defined in: libs/scene/src/shapes/torus.ts:11
Slice count, default is 40 *
numSegments?
optionalnumSegments?:number
Defined in: libs/scene/src/shapes/torus.ts:13
Segment count, default is 16
outerRadius?
optionalouterRadius?:number
Defined in: libs/scene/src/shapes/torus.ts:15
Outer radius, default is 10
innerRadius?
optionalinnerRadius?:number
Defined in: libs/scene/src/shapes/torus.ts:17
Inner radius, default is 3
radialDetail?
optionalradialDetail?:number
Defined in: libs/scene/src/shapes/torus.ts:19
Radial detail, default is 20