static sgCBox*   sgCBox::Create(double sizeX, double sizeY, double sizeZ)



Creates an object of the BOX class with a vertex in the coordinate origin and the sides directed along the X, Y and Z axes.



sizeX - box size on the X axis,

sizeY - box size on the Y axis,

sizeZ - box size on the Z axis.


Returned value:

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




Following shortening is set:

#define    sgCreateBox  sgCBox::Create



sgCBox*     bx = sgCreateBox(10.0, 20.0, 3.0);


See also:

Objects hierarchy   sgCObject methods   SG_BOX