ST_Intersects

更新时间:
复制 MD 格式

Returns true if a scene object and a meshgeom object share any point in space.

Syntax

bool ST_Intersects(scene sc, meshgeom geom);

Parameters

ParameterTypeDescription
scsceneThe scene object to test.
geommeshgeomThe meshgeom object to test against.

Description

ST_Intersects checks whether the scene object and the meshgeom object intersect.

Examples

SELECT ST_Intersects(
  ST_3DSphere(1, 1),
  'Mesh(IndexSurface(Vertex(0 0 0, 1 0 0, 1 1 0), Index((0,1,2))))'::meshgeom
);

Result:

 st_intersects
---------------
 t