Up to date

This page is up to date for Redot 4.3. If you still find outdated information, please create an issue.

SphereMeshΒΆ

Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object

Class representing a spherical PrimitiveMesh.

DescriptionΒΆ

Class representing a spherical PrimitiveMesh.

PropertiesΒΆ

float

height

1.0

bool

is_hemisphere

false

int

radial_segments

64

float

radius

0.5

int

rings

32


Property DescriptionsΒΆ

float height = 1.0 πŸ”—

  • void set_height(value: float)

  • float get_height()

Full height of the sphere.


bool is_hemisphere = false πŸ”—

  • void set_is_hemisphere(value: bool)

  • bool get_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.


int radial_segments = 64 πŸ”—

  • void set_radial_segments(value: int)

  • int get_radial_segments()

Number of radial segments on the sphere.


float radius = 0.5 πŸ”—

  • void set_radius(value: float)

  • float get_radius()

Radius of sphere.


int rings = 32 πŸ”—

  • void set_rings(value: int)

  • int get_rings()

Number of segments along the height of the sphere.