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);パラメーター
| 項目 | 説明 |
| geom | The meshgeom object. |
| sfmesh | The 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