SphereMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Class representing a spherical PrimitiveMesh.

Description

Class representing a spherical PrimitiveMesh.

Properties

floatheight2.0
boolis_hemispherefalse
intradial_segments64
floatradius1.0
intrings32

Property Descriptions

Default2.0
Setterset_height(value)
Getterget_height()

Full height of the sphere.


Defaultfalse
Setterset_is_hemisphere(value)
Getterget_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
Default64
Setterset_radial_segments(value)
Getterget_radial_segments()

Number of radial segments on the sphere.


Default1.0
Setterset_radius(value)
Getterget_radius()

Radius of sphere.


Default32
Setterset_rings(value)
Getterget_rings()

Number of segments along the height of the sphere.