Merges multiple meshes in a scene object into a single mesh.
Syntax
scene ST_CombineMeshes(scene sc);Parameters
| Parameter | Description |
|---|---|
sc | The scene object containing the meshes to merge. |
Usage notes
Returns NULL if the scene object contains no meshes.
The return type is
scene. After the merge, the scene contains one mesh.
Examples
The following example merges all meshes in the scene column of table t and returns the result as text.
Before the merge, 145 meshes exist in the 3D model.

After the merge, one mesh exists in the 3D model.

SELECT ST_AsText(ST_CombineMeshes(scene)) FROM t;Output:
{"type" : "gltf", "content" : {"accessors":[{"bufferView":0,......The output is a glTF-format JSON object. The content field contains the merged mesh data.