SmApiFaceComputeCentroid#
Defined in SM_API/inc/SmApiQueries.h
- SmApiStatus SmApiFaceComputeCentroid(
- const SmFace *pFace,
- double dRelativeAccuracy,
- double &rdArea,
- SmPoint3d &rCentroid,
Single-face area centroid (integrates only area and area first moments). For a whole-solid mass centroid, use SmApiBrepComputeMassProperties.
- Parameters:
pFace – [in ]: Pointer to face
dRelativeAccuracy –
[in ]: Relative accuracy values below 1e-8 are not recommended
non-finite values return SM_ERR_INVALID_INPUT
rdArea – [out]: Surface area of the face within its trim boundary
rCentroid – [out]: Area centroid of the trimmed face