SphereMesh
Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object
Description
Section titled “Description”Class representing a spherical PrimitiveMesh.
Class representing a spherical PrimitiveMesh.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| float | height |
1.0 |
| bool | is_hemisphere |
false |
| int | radial_segments |
64 |
| float | radius |
0.5 |
| int | rings |
32 |
Property descriptions
Section titled “Property descriptions”height
float height = 1.0
Full height of the sphere.
is_hemisphere
bool is_hemisphere = false
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.
radial_segments
int radial_segments = 64
Number of radial segments on the sphere.
radius
float radius = 0.5
Radius of sphere.
rings
int rings = 32
Number of segments along the height of the sphere.
