MyCylinder

MyCylinder

Represents a cylinder.

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:

initSideBuffers()

Inits the buffers of the rounded side.
Source:

initTopBottomBuffers()

Inits the top and down faces.
Source: