Skip to main content

Torus

Torus is a primitive object that creates a torus.

Syntax

<Torus />

Parameters

All objects share the same base parameters from ComponentObjectProps.

NameTypeDescription
radiusnumberThe radius of the torus.
tubenumberThe tube radius of the torus.
radialSegmentsnumberThe number of segments along the radial direction.
tubularSegmentsnumberThe number of segments along the tubular direction.
arcnumberThe central angle of the torus.
bloombooleanWhether use bloom effect.
colorColorTypeThe base color.
materialObjectMaterialMixThe material.

Example

<Torus
radius={1}
tube={0.4}
radialSegments={8}
tubularSegments={6}
arc={Math.PI * 2}
color="#00ff00"
/>

Available on: Client Server