[−][src]Function spatialite_sys::gaiaTriangularGrid
pub unsafe extern "C" fn gaiaTriangularGrid(
geom: gaiaGeomCollPtr,
origin_x: f64,
origin_y: f64,
size: f64,
only_edges: c_int
) -> gaiaGeomCollPtr
Utility function: TriangularGrid
\param geom the Geometry to be covered by the Grid. \param origin_x the X ccordinate identifying the Grid Origin. \param origin_y the Y coordinate identifiying the Grid Origin. \param size the Grid cell-side size. \param only_edges if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing triangular POLYGONs.
\return the pointer to newly created Geometry object: NULL on failure. \n this function will always return a MultiPolygon \n NULL will be returned if any argument is invalid.
\sa gaiaTriangularGrid_r, gaiaFreeGeomColl, gaiaSquareGrid, gaiaHexagonalGrid
\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry returned by gaiaTriangularGrid()\n not reentrant and thread unsafe.