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

PolarDB:ST_NumMaterials

最終更新日:Jul 02, 2024

This topic describes the ST_NumMaterials function. This function returns the number of materials in an sfmesh object.

構文

int4 ST_NumMaterials(sfmesh sfmesh);

パラメーター

項目説明
sfmeshThe sfmesh object.

説明 

This function returns the number of materials in an sfmesh object.

select ST_NumMaterials('{   "meshgeoms" : ["MESHGEOM(PATCH(TRIANGLESTRIP(0 0,0 10,10 10,10 0)))"],  "materials":[{"type":"db", "attributes": {"schema":"public","table":"t_material","column":"the_material","key":"num=1"}} ], "primitives" : [  {"meshgeom": 0, "material" : 0}],  "nodes" : [    {"primitive" : 0} ] }'::sfmesh);

------------------------------
 1