3D モデルと、box3d または meshgeom とのインターセクションを計算します。
構文
sfmesh ST_3DIntersection(sfmesh sfmeshObject, box3d box);
sfmesh ST_3DIntersection(sfmesh sfmeshObject, meshgeom geom);パラメーター
パラメーター名 | 説明 |
sfmeshObject | sfmesh オブジェクト。 |
box | box3d オブジェクト。 |
geom | 閉じた meshgeom オブジェクト。 |
説明
この関数は、sfmesh オブジェクトの UV 値と法線値も更新します。
box3d:軸平行 box3d オブジェクトと sfmesh オブジェクトのインターセクションを計算します。
meshgeom:meshgeom オブジェクトと sfmesh オブジェクトのインターセクションを計算します。
例
SELECT ST_NumPatches(ST_3DIntersection(ST_3DMakeSphere(1.0, 5), 'BOX3D(0 0 0, 1 1 1)'::box3d)::meshgeom);
--------------
2608