Synopsis

PDX_MSGT gdx_SurfaceGetApproxArea(long option, MDA_PTR gdx_surf_ptr, double tol, double *area, MTH_3DPNT mid_point)

Purpose

Calculate surface area

Description

Perform a facetted approximation on a surface entity and calculate the area of the resulting polygons. Also determine a point representing the middle of the surface. Valid surface types include GDX_FACE and any bounded surface.

Input

option

Options (not used)

gdx_surf_ptr

Database pointer of surface to calculate area

tol

Approximation tolerance to use

Output

area

Area of surface

mid_point

Middle point of surface

Return

      GDX_NOERR
      Low level error return
      .fi