MySphere

MySphere

Represents a sphere.

Constructor

new MySphere(scene, slices, stacks)

Instantiates a new sphere instance.
Source:
Parameters:
Name Type Description
scene CGFscene the scene in which the sphere is going to be shown
slices integer number of slices around Y axis
stacks integer number of stacks along Y axis, from the center to the poles (half of sphere)

Methods

display()

Displays the sphere.
Source:

initBuffers()

Initializes the sphere buffers.
Source: