C3DMesh::CreateCylinder |
Top Previous Next |
Syntax:
CreateCylinder(C3DScreen pScreen, float height, int segments, float rad, int bInside), int
Purpose: Creates a cylinder mesh. Parameters: height - The height of the cylinder. segments - Number of polygon segments around the diameter. rad - The radius of the cylinder. bInside - Culling flag.
Returned value(s): TRUE if the mesh could be created, FALSE otherwise. Application: mesh1.CreateCylinder(s, 3.0, 20, .25, FALSE)
Class Hierarchy -------C3DMesh
Additional Info: Higher segment values results in a better looking cylinder but increases the poly count of the object.
If bInside is TRUE then the cylinder will be visible when the camera is inside of it. You can make a cylinder visible from both inside and out by using the SetCulling method. Note however that light reflection will be determined by the bInside parameter
|