<a-torus>

Note: This documentation is for the old 0.2.0 version of A-Frame. Check out the documentation for the current 0.6.0 version

The torus primitive creates a donut or circular tube shape. It is an entity that prescribes the geometry with its geometric primitive set to torus.

Example

<a-torus color="blue" position="0 0 0" segments-radial="50" segments-tubular="200" radius="5"
radius-tubular="0.1"></a-torus>

Attributes

Note that the torus primitive inherits common mesh attributes.

Attribute Component Mapping Default Value
arc geometry.arc 360
radius geometry.radius 1
radius-tubular geometry.radiusTubular 0.2
segments-radial geometry.segmentsRadial 36
segments-tubular geometry.segmentsTubular 8