Constructor
new MyCylinder(scene, slices)
Instantiates a new cylinder instance.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
scene |
CGFscene
|
the scene in which the cylinder will be shown |
slices |
integer
|
number of slices around Y axis |
Methods
initBuffers()
Inits the vertices, indices, normals and texture coordinates.
- Source: