This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer2 Interface > IGeometryServer2.ConvexHull Method (ArcObjects .NET 10.5 SDK) |
Computes the convex hull of the input geometries
[Visual Basic .NET] Public Function ConvexHull ( _ ByVal pSR As ISpatialReference, _ ByVal pInGeometryArray As IGeometryArray _ ) As IGeometry
[C#] public IGeometry ConvexHull ( ISpatialReference pSR, IGeometryArray pInGeometryArray );
[C++]
HRESULT ConvexHull(
ISpatialReference* pSR,
IGeometryArray* pInGeometryArray,
IGeometry** pHull
);
[C++]
Parameters pSR
pSR is a parameter of type ISpatialReference pInGeometryArray
pInGeometryArray is a parameter of type IGeometryArray pHull [out, retval]
pHull is a parameter of type IGeometry
The convex hull of a set of points, polylines and polygons is shown below. If all the inputs are collinear, than a polyline will be returned instead of a polygon. If all inputs are located at a single point, then that point will be returned.