static sgCCircle*   sgCCircle::Create(const SG_CIRCLE& cirGeom)



Creates an object of the CIRCLE class.



cirGeom - the circle geometry. Read more about the circle geometry at SG_CIRCLE


Returned value:

Returns the pointer to the created object. If the points are the same, the function returns NULL.



Following shortening is set:

#define  sgCreateCircle    sgCCircle::Create




SG_POINT    cirCenter = {1.0, 0.0, 1.0};

SG_VECTOR   cirNorm = {0.0, 0.0, 1.0};

SG_CIRCLE   cirGeom;

cirGeom.FromCenterRadiusNormal(cirCenter, 5.0, cirNorm);

sgCCircle*   crcl = sgCreateCircle(cirGeom);


See also:

Objects hierarchy   sgCObject methods   SG_CIRCLE SG_POINT   SG_VECTOR