This document is archived and information here might be outdated.  Recommended version.


IMensuration3D.GetCentroid3D Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IMensuration3D.GetCentroid3D Method

Computes the 3D centroid of a 2D polygon with no interior holes..

[Visual Basic .NET]
Public Sub GetCentroid3D ( _
    ByVal pPolygon As IPolygon, _
    ByRef ppPointMeasurement As IPointMeasurement _
)
[C#]
public void GetCentroid3D (
    IPolygon pPolygon,
    ref IPointMeasurement ppPointMeasurement
);
[C++]
HRESULT GetCentroid3D(
  IPolygon* pPolygon,
  IPointMeasurement** ppPointMeasurement
);
[C++]

Parameters pPolygon [in]
pPolygon is a parameter of type IPolygon ppPointMeasurement [out]
ppPointMeasurement is a parameter of type IPointMeasurement

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IMensuration3D Interface