すべてのプロダクト
Search
ドキュメントセンター

PolarDB:ST_Intersection

最終更新日:Jun 21, 2024

このトピックでは、ST_Intersection関数について説明します。 この関数は、シーンオブジェクトとmeshgeomオブジェクトの交差を返します。

構文

シーンST_Intersection (シーンsc、meshgeom geom);

パラメーター

パラメーター説明
scシーンオブジェクト。
geommeshgeomオブジェクト。

説明

閉じたmeshgeomオブジェクトを使用してシーンオブジェクトをクリップすると、シーンオブジェクトの一部がmeshgeomオブジェクト内に残ります。

  • meshgeomオブジェクトが閉じられていない場合、NULLが返されます。
  • meshgeomオブジェクトが空の場合、NULLが返されます。

例:

SELECT ST_AsText(ST_Intersection(ST_3DSphere(0.5,1), ST_3DMakeCuboid(1,1,1)));
---------
{"type" : "gltf", "content" : {"accessors":[{"bufferView":0,......}]}}