SmApiFaceComputeArea#

Defined in SM_API/inc/SmApiQueries.h

SmApiStatus SmApiFaceComputeArea(
const SmFace *pFace,
double dRelativeAccuracy,
double &rdArea,
)#

Single-face area. For whole-solid area+volume+centroid+inertia, use SmApiBrepComputeMassProperties (one call; also yields solid volume). This area-only query skips volume and moment integration.

Parameters:
  • pFace – [in ]: Pointer to face

  • dRelativeAccuracy –

    [in ]: Relative accuracy values below 1e-8 are not recommended

    not recommended; non-finite values return SM_ERR_INVALID_INPUT

  • rdArea – [out]: Surface area of the face within its trim boundary