MKI_CalcObjectCentroid (Calculation) Changed in Version 2015.0

www.CAD6.com

C++ Syntax

bool

MKI_CalcObjectCentroid(

 MKI_CONST_ENTITY_OBJECT_PTR f_pObj,

 MKI_POINT_REF f_rResult );

 

Calculates the centroid of the object pointed to by Obj.

 

Not supported in CAD6starter!

 

Parameters

Obj

[MKI_CONST_ENTITY_OBJECT_PTR] Address of the object whose centroid is to be calculated.

Result

[MKI_POINT_REF] Address of a point to receive the calculated centroid's coordinates in internal [mm].

 

Return Value

Returns true if successful. If false is returned, Result is invalid.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH