TorusMesh

Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object

Class representing a torus PrimitiveMesh.

Description

Class representing a torus PrimitiveMesh.

Properties

float

inner_radius

0.5

float

outer_radius

1.0

int

ring_segments

32

int

rings

64

Property Descriptions

Default

0.5

Setter

set_inner_radius(value)

Getter

get_inner_radius()

The inner radius of the torus.


Default

1.0

Setter

set_outer_radius(value)

Getter

get_outer_radius()

The outer radius of the torus.


  • int ring_segments

Default

32

Setter

set_ring_segments(value)

Getter

get_ring_segments()

The number of edges each ring of the torus is constructed of.


Default

64

Setter

set_rings(value)

Getter

get_rings()

The number of slices the torus is constructed of.