static sgCArc*   sgCArc::Create(const SG_ARC& arcGeom)

 

Description:

Creates an object of the ARC class.

 

Arguments:

arcGeom - the arc geometry. Read more about the arc geometry at SG_ARC

 

Returned value:

Returns the pointer to the created object. Otherwise NULL.

 

 

Following shortening is set:

#define  sgCreateArc    sgCArc::Create

 

Example:

 

SG_POINT    arcP1 = {0.0, 0.0, 0.0};

SG_POINT    arcP2 = {1.0, 0.0, 0.0};

SG_POINT    arcP3 = {0.0, 0.0, 1.0};

SG_ARC      arcGeom;

arcGeom.FromThreePoints(arcP1,arcP2,arcP3,false);

sgCArc*     arc = sgCreateArc(arcGeom);

 

See also:

Objects hierarchy   sgCObject methods   SG_ARC SG_POINT