All Products
Search
Document Center

PolarDB:ST_CombineMeshes

Last Updated:Mar 28, 2026

Merges multiple meshes in a scene object into a single mesh.

Syntax

scene ST_CombineMeshes(scene sc);

Parameters

ParameterDescription
scThe 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.

image..png

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

image..png
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.