Table of Contents

Class TorusMesh

Class representing a torus PrimitiveMesh.

Inheritance
TorusMesh

Remarks

Class representing a torus PrimitiveMesh.

Properties

inner_radius

The inner radius of the torus.

var inner_radius : float = 0.5

Property Value

float

Remarks

  • void set_inner_radius(float value)
  • float get_inner_radius

outer_radius

The outer radius of the torus.

var outer_radius : float = 1.0

Property Value

float

Remarks

  • void set_outer_radius(float value)
  • float get_outer_radius

ring_segments

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

var ring_segments : int = 32

Property Value

int

Remarks

  • void set_ring_segments(int value)
  • int get_ring_segments

rings

The number of slices the torus is constructed of.

var rings : int = 64

Property Value

int

Remarks

  • void set_rings(int value)
  • int get_rings