sgCObject*   sgCObject::Clone()

 

Description:

Creates the copy of the object.

 

Arguments:

No arguments.

 

Returned value:

The function returns the pointer to a newly created object. If it fails NULL is returned.

 

Example:

 

sgCLine*      line1 = sgCreateLine(0.0, 0.0, 0.0, 2.0, 3.0, 5.0);

sgObject*  line2 = line1->Clone();

assert(line2->GetType()==SG_OT_LINE);

 

See also:

Objects hierarchy   sgCObject methods