SphereOption

class SphereOption(radius: Float)

Option for creating a sphere MeshResource.

Chainable setters are provided to configure the sphere. Each setter returns this instance.

Parameters

radius

The radius of the sphere, in meters. Must be greater than 0.

Constructors

Link copied to clipboard
constructor(radius: Float)

Functions

Link copied to clipboard
fun setName(name: String?): SphereOption

Sets the debug name of the resulting mesh.

Link copied to clipboard

Sets the sphere topology.