Interface IVolume

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll

Provides access to members that return properties common to MultiPatches.

[Guid("AADE8029-6549-41E8-85F5-B17B8E7D9212")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVolume

Properties

Volume

The enclosed 3D volume.

double Volume { get; }

Property Value

double

Remarks

If Patches comprising a MultiPatch geometry have improperly ordered vertices such that positive faces are not pointing outwards, a negative volume will be returned. To ensure proper orientation, add vertices in a clockwise manner relative to an outside observer.

[C#]

 

        public static void CalculateVolume()

        {

IGeometry

geometry = GetMultiPatchGeometry();


IVolume

volume = geometry as IVolume;

double calculatedVolume = volume.Volume;

//calculatedVolume = 225.048


        }