static sgCCone*   sgCCone::Create(double rad_1, double rad_2, double heig, short merid)

 

Description:

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

 

Arguments:

rad_1 - the first base radius,

rad_2 - the second base radius,

heig - cone height,

merid - the number of meridians.

More about the arguments meanings - SG_CONE

 

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   sgCreateCone   sgCone::Create

 

Example:

sgCCone*   con = sgCreateCone(2.0, 1.0, 5.0, 24);

 

See also:

Objects hierarchy   sgCObject methods   SG_CONE