PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_intersects3D()

Datum sfcgal_intersects3D ( PG_FUNCTION_ARGS  )

Definition at line 268 of file postgis/lwgeom_sfcgal.c.

269 {
270  GSERIALIZED *input0, *input1;
271  sfcgal_geometry_t *geom0, *geom1;
272  int result;
273 
275 
276  input0 = PG_GETARG_GSERIALIZED_P(0);
277  input1 = PG_GETARG_GSERIALIZED_P(1);
278  geom0 = POSTGIS2SFCGALGeometry(input0);
279  PG_FREE_IF_COPY(input0, 0);
280  geom1 = POSTGIS2SFCGALGeometry(input1);
281  PG_FREE_IF_COPY(input1, 1);
282 
283  result = sfcgal_geometry_intersects_3d(geom0, geom1);
284  sfcgal_geometry_delete(geom0);
285  sfcgal_geometry_delete(geom1);
286 
287  PG_RETURN_BOOL(result);
288 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

Here is the call graph for this function: