This document is archived and information here might be outdated. Recommended version. |
The 3D surface area.
[Visual Basic .NET] Public ReadOnly Property Area3D As Double
[C#] public double Area3D {get;}
[C++]
HRESULT get_Area3D(
System.Double* Area
);
[C++]
Parameters Area [out, retval]
Area is a parameter of type double*
If Patches comprising a MultiPatch geometry have improperly ordered vertices such that positive faces are not pointing outwards, a negative 3D surface area will be returned. To ensure proper orientation, add vertices in a clockwise manner relative to an observer situated outside of the MultiPatch geometry.
public static void CalculateArea3D()
{
IGeometry multiPatchGeometry=GetMultiPatchGeometry();
IArea3D area3D = multiPatchGeometry as IArea3D;
double calculatedArea3D=area3D.Area3D;
//calculatedArea3D = 480
}