ST_3DArea

计算三维模型的表面积。

语法

float8 ST_3DArea(meshgeomgeom);
float8 ST_3DArea(sfmeshsfmeshObject);

参数

参数名称

描述

geom

meshgeom对象

sfmeshObject

sfmesh对象。

描述

  • 计算sfmeshmeshgeom的三维表面积。

  • point、linestring的表面积为0。

  • 如果geom参数非法,则返回值为NULL。

示例

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