This topic describes the ST_CombineMeshes function. This function merges multiple meshes in a 3D model into one.
Syntax
scene ST_CombineMeshes(scene sc);Parameters
Parameter | Description |
sc | The scene object. |
Description
This function merges multiple meshes in a 3D model into one. If no meshes exist in the 3D model , NULL is returned. The 3D model is a scene object.
The following figures show an example.
Before the merge, 145 meshes exist in the 3D model.

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

Examples
SELECT ST_AsText(ST_CombineMeshes(scene)) from t;
--------
{"type" : "gltf", "content" : {"accessors":[{"bufferView":0,......