Class: GrSphere

SimpleObjects.GrSphere(params, paramInfoopt)

A simple object: A sphere (not it uses the CubeParams, since they apply as well)

Constructor

new GrSphere(params, paramInfoopt)

Parameters:
Name Type Attributes Description
params CubeProperties
paramInfo Array.<(string|Array)> <optional>

parameters for the GrObject (for sliders)

Source:

Methods

setSegmentation(widthSegmentsopt, heightSegmentsopt)

Update the geometry of the sphere to change its level of complexity

Parameters:
Name Type Attributes Description
widthSegments number <optional>

number of horizontal segments

heightSegments number <optional>

number of vertical segments

Source: