static sgCCylinder*   sgCCylinder::Create(double rad, double heig, short merid)



Creates an object of the CYLINDER class with the base center in the coordinate origin and directed along the Z axis.



rad - cylinder radius,

heig - cylinder height,

merid - the number of meridians.

More about the arguments meanings - SG_CYLINDER


Returned value:

Returns the pointer to the created object. If one of the arguments is negative or equal to zero, the function returns NULL.



Following shortening is set:

#define   sgCreateCylinder    sgCCylinder::Create



sgCCylinder*     cyl = sgCreateCylinder(5.0, 10.0, 36);


See also:

Objects hierarchy   sgCObject methods   SG_CYLINDER