PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ sfcgal_intersects3D()

Datum sfcgal_intersects3D ( PG_FUNCTION_ARGS  )

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

References PG_FUNCTION_INFO_V1(), POSTGIS2SFCGALGeometry(), sfcgal_distance(), and sfcgal_postgis_init().

Referenced by sfcgal_intersects().

268 {
269  GSERIALIZED *input0, *input1;
270  sfcgal_geometry_t *geom0, *geom1;
271  int result;
272 
274 
275  input0 = PG_GETARG_GSERIALIZED_P(0);
276  input1 = PG_GETARG_GSERIALIZED_P(1);
277  geom0 = POSTGIS2SFCGALGeometry(input0);
278  PG_FREE_IF_COPY(input0, 0);
279  geom1 = POSTGIS2SFCGALGeometry(input1);
280  PG_FREE_IF_COPY(input1, 1);
281 
282  result = sfcgal_geometry_intersects_3d(geom0, geom1);
283  sfcgal_geometry_delete(geom0);
284  sfcgal_geometry_delete(geom1);
285 
286  PG_RETURN_BOOL(result);
287 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)
Here is the call graph for this function:
Here is the caller graph for this function: