This topic describes the ST_3DArea function. This function calculates the surface area of a 3D model.

Syntax

float8 ST_3DArea(meshgeom geom);
float8 ST_3DArea(sfmesh sfmeshObject);

Parameters

ParameterDescription
geomThe meshgeom object.
sfmeshObjectThe sfmesh object.

Description

  • This function calculates the surface area of a 3D sfmesh or meshgeom object.
  • The surface area of a point or linestring is 0.
  • If the geom parameter is invalid, NULL is returned.

Examples

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);

-----------
       100