Calculates the surface area of a 3D sfmesh or meshgeom object.
Syntax
float8 ST_3DArea(meshgeom geom);
float8 ST_3DArea(sfmesh sfmeshObject);Parameters
| Parameter | Type | Description |
|---|---|---|
geom | meshgeom | The meshgeom object. |
sfmeshObject | sfmesh | The sfmesh object. |
Usage notes
Returns
0for point and linestring geometries.Returns
NULLifgeomis invalid.
Examples
Calculate the surface area of a meshgeom object:
SELECT ST_3DArea('MESHGEOM(PATCH(INDEXSURFACE Z(VERTEX(0 0 0,0 10 0,0 0 10,10 0 0), INDEX((0,1,2),(1,0,3)))))'::meshgeom);Output:
-----------
100该文章对您有帮助吗?