SphereMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Category: Core

Brief Description

Class representing a spherical PrimitiveMesh.

Properties

floatheight
boolis_hemisphere
intradial_segments
floatradius
intrings

Description

Class representing a spherical PrimitiveMesh.

Property Descriptions

Setterset_height(value)
Getterget_height()

Full height of the sphere. Defaults to 2.0.


Setterset_is_hemisphere(value)
Getterget_is_hemisphere()

Determines whether a full sphere or a hemisphere is created. Attention: To get a regular hemisphere, the height and radius of the sphere have to equal. Defaults to false.


  • int radial_segments
Setterset_radial_segments(value)
Getterget_radial_segments()

Number of radial segments on the sphere. Defaults to 64.


Setterset_radius(value)
Getterget_radius()

Radius of sphere. Defaults to 1.0.


Setterset_rings(value)
Getterget_rings()

Number of segments along the height of the sphere. Defaults to 32.