CG_3DIntersects — Tests if two 3D geometries intersect
boolean CG_3DIntersects(
geometry
geomA
,
geometry
geomB
)
;
Tests if two 3D geometries intersect. 3D geometries intersect if they have any point in common in the three-dimensional space.
Performed by the SFCGAL module
NOTE: this is the "allowable" version that returns a boolean, not an integer. |
Availability: 3.5.0
This method needs SFCGAL backend.
This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).
SELECT CG_3DIntersects('POINT(1.2 0.1 0)','POLYHEDRALSURFACE(((0 0 0,0.5 0.5 0,1 0 0,1 1 0,0 1 0,0 0 0)),((1 0 0,2 0 0,2 1 0,1 1 0,1 0 0),(1.2 0.2 0,1.2 0.8 0,1.8 0.8 0,1.8 0.2 0,1.2 0.2 0)))'); cg_3dintersects --------------- t (1 row)