Function gaiaCreatePolygon

Source
pub unsafe extern "C" fn gaiaCreatePolygon(
    ring: gaiaRingPtr,
) -> gaiaPolygonPtr
Expand description

Allocates a POLYGON

\param ring pointer to a valid RING object: assumed to be the Polygon’s Exterior Ring.

\return the pointer to newly created POLYGON object: NULL on failure

\sa gaiaAllocRing, gaiaAllocRingXYZ, gaiaAllocRingXYM, gaiaAllocRingXYZM, gaiaFreePolygon

\note you are responsible to destroy (before or after) any allocated POLYGON, unless you’ve passed ownership of the POLYGON object to some further object: in this case destroying the higher order object will implicitly destroy any contained child object. \n Ownership of passed Ring object will be transferred to the Polygon object being created.