将单个三维模型中的多个几何结构合并成一个。
语法
scene ST_CombineMeshes(scene sc);
参数
参数名称 | 描述 |
sc | scene对象。 |
描述
将单个三维模型(scene对象)中的多个几何结构(mesh)合并成一个,scene为空时返回NULL。
示例如下图:
合并前(145个mesh)
![image..png](https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/7611533861/p667819.png)
合并后(1个mesh)
![image..png](https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/6590533861/p667817.png)
示例
SELECT ST_AsText(ST_CombineMeshes(scene)) from t;
--------
{"type" : "gltf", "content" : {"accessors":[{"bufferView":0,......
文档内容是否对您有帮助?