static sgCSphericBand*   sgCSphericBand::Create(double radius, double beg_koef, double end_koef, short merid_cnt)

 

Description:

Creates an object of the SPHERICAL BAND class with the generating sphere center in the coordinate origin and the normal along the Z axis.

 

Arguments:

 

radius - spherical band radius,

beg_koef - start clipping coefficient (from -1 to 1),

end_koef - end clipping coefficient (from -1 to 1),

merid_cnt - number of meridians.

More about the coordinates meanings - SG_SPHERIC_BAND

 

 

Returned value:

Returns the pointer to the created object. If the radius is negative or the number of meridians is negative, or the clipping coefficients are smaller than -1 or more than 1, the function returns NULL.

 

Following shortening is set:

#define   sgCreateSphericBand   sgSphericBand::Create

 

Example:

sgCSphericBand*     spB = sgCreateSphericBand(5.0, -0.5, 0.5, 24);

 

See also:

Objects hierarchy   sgCObject methods   SG_SPHERIC_BAND