Function gaiaAddInteriorRing

Source
pub unsafe extern "C" fn gaiaAddInteriorRing(
    p: gaiaPolygonPtr,
    pos: c_int,
    vert: c_int,
) -> gaiaRingPtr
Expand description

Creates a new Interior Ring object into a Polygon object

\param p pointer to the Polygon object. \param pos relative position index [first Interior Ring has index 0]. \param vert number of points (aka vertices) into the Ring.

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

\sa gaiaAllocPolygon, gaiaAllocPolygonXYZ, gaiaAllocPolygonXYM, gaiaAllocPolygonXYZM

\note ownership of the Ring object belongs to the Polygon object. \n the newly created Ring will have the same dimensions the Polygon has.