Skip to content

Documentation / scene / TorusCreationOptions

Interface: TorusCreationOptions

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

Creation options for torus shape

Extends

Properties

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


numSlices?

optional numSlices?: number

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

Slice count, default is 40 *


numSegments?

optional numSegments?: number

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

Segment count, default is 16


outerRadius?

optional outerRadius?: number

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

Outer radius, default is 10


innerRadius?

optional innerRadius?: number

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

Inner radius, default is 3


radialDetail?

optional radialDetail?: number

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

Radial detail, default is 20

Released under the MIT License.