This topic describes the ST_AddBBox function. This function adds a bounding box to an input sfmesh or meshgeom object.
Syntax
sfmesh ST_AddBBox(sfmesh sfmeshObject);
meshgeom ST_AddBBox(meshgeom meshgeom);Parameters
| Parameter | Description |
|---|---|
| sfmeshObject | The sfmesh object. |
| meshgeom | The meshgeom object. |
Description
This function adds a bounding box to an input sfmesh or meshgeom object. Before you call this function, you must call the ST_HasBBox function to check whether the input object has a bounding box.
Example
Select ST_HasBBOX(ST_AddBBOX('{"version" : 1, "srid" : 4490, "root" : 0, "lod" :1, "meshgeoms" : ["MESHGEOM(PATCH(INDEXSURFACE Z (VERTEX(0 0 2,0 10 3,10 10 1,10 0 1),INDEX((0,1,2),(1,2,3)))))"], "primitives" : [{"meshgeom" : 0}], "nodes" : [{"primitive" : 0}]}'::sfmesh));
------------
t