This topic describes the ST_MeshFromHexEWKB function. This function constructs an sfmesh object from the HEXEWKB representation of the sfmesh object.
Syntax
sfmesh ST_MeshGeomFromHexEWKB(text hexewkb);Parameters
| Parameter | Description |
|---|---|
| hexewkb | The sfmesh object in HEXEWKB representation. |
Description
This function constructs an sfmesh object from the HEXEWKB representation of the sfmesh object.
Examples
select ST_AsEWKT(ST_MeshFromHexEWKB(ST_AsHexEWKB('MESHGEOM (PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom::sfmesh)));
st_asewkt
-----------------------------------------------------------------------------
{"version" : 1, "root" : 0, "meshgeoms" : ["MESHGEOM(PATCH(INDEXSURFACE(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}]}