static sgCSphere* sgCSphere::Create(double rad, short merid, short parall)
Description:
Creates an object of the SPHERE class with a center in the coordinate origin.
Arguments:
rad - sphere radius,
merid - the number of meridians,
parall - the number of parallels.
More about the arguments meanings - SG_SPHERE
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 sgCreateSphere sgCSphere::Create
Example:
sgCSphere* sph = sgCreateSphere(10.0, 24, 24);
See also:
Objects hierarchy sgCObject methods SG_SPHERE