Synopsis

PDX_MSGT gdx_SolidGetMassProperties(long option, MDA_PTR gdx_solid_ptr, double approx_tol, double *area, double *volume, MTH_3DPNT centroid)

Purpose

Get surface area, volume and centroid of GDX PolyShell Entity

Description

Get surface area, volume, centroid of GDX PolyShell Entity pointed to by database pointer gdx_ps_ptr. If GDX PolyShell Entity is not closed, zero volume and zero centroid coordinates are returned

Input

option

(not used)

gdx_solid_ptr

GDX Solid Entity database pointer

approx_tol

Approximation tolerance to use

Output

area

Surface area

volume

Volume

centroid

Centroid

Return

      GDX_NOERR
      .fi