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

PolarDB:ST_NumPatches

最終更新日:Jul 02, 2024

This topic describes the ST_NumPatches function. This function returns the number of faces from a meshgeom or sfmesh object.

構文

int4 ST_NumPatches(meshgeom geom);
int4 ST_NumPatches(sfmesh sfmesh);

パラメーター

項目説明
geomThe meshgeom object.
sfmeshThe sfmesh object.

説明 

This function returns the number of faces from a meshgeom or sfmesh object.

select ST_NumPatches('MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom);

---------------
2