All Products
Search
Document Center

PolarDB:ST_CombineMeshes

Last Updated:Jun 08, 2023

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.

image..png

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

image..png

Examples

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