Table of Contents

Class SphereMesh

Class representing a spherical PrimitiveMesh.

Inheritance
SphereMesh

Remarks

Class representing a spherical PrimitiveMesh.

Properties

height

Full height of the sphere.

var height : float = 1.0

Property Value

float

Remarks

is_hemisphere

If true, a hemisphere is created rather than a full sphere.

Note: To get a regular hemisphere, the height and radius of the sphere must be equal.

var is_hemisphere : bool = false

Property Value

bool

Remarks

  • void set_is_hemisphere(bool value)
  • bool get_is_hemisphere

radial_segments

Number of radial segments on the sphere.

var radial_segments : int = 64

Property Value

int

Remarks

  • void set_radial_segments(int value)
  • int get_radial_segments

radius

Radius of sphere.

var radius : float = 0.5

Property Value

float

Remarks

rings

Number of segments along the height of the sphere.

var rings : int = 32

Property Value

int

Remarks

  • void set_rings(int value)
  • int get_rings