TorusMesh
Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object
Description
Section titled “Description”Class representing a torus PrimitiveMesh.
Class representing a torus PrimitiveMesh.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| float | inner_radius |
0.5 |
| float | outer_radius |
1.0 |
| int | ring_segments |
32 |
| int | rings |
64 |
Property descriptions
Section titled “Property descriptions”inner_radius
float inner_radius = 0.5
The inner radius of the torus.
outer_radius
float outer_radius = 1.0
The outer radius of the torus.
ring_segments
int ring_segments = 32
The number of edges each ring of the torus is constructed of.
rings
int rings = 64
The number of slices the torus is constructed of.
