All Products
Search
Document Center

PolarDB:ST_Combine

Last Updated:Jun 08, 2023

This topic describes the ST_Combine function. This function merges multiple 3D models into one.

Syntax

scene ST_Combine(scene sc);

Parameters

Parameter

Description

sc

The scene object.

Set the value to the column name or expression of scene objects. This function can merge all scene objects in a column.

Description

This function merges multiple 3D models of the same type into one. This function cannot merge 3D models of different types. For example, this function cannot merge scene objects of the gltf type with scene objects of the osg type.

The following figure shows an example.

Four neighboring 3D models exist before the merge.

image..png

One 3D model exists after the merge.

image..png

Examples

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