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) |