This document is archived and information here might be outdated. Recommended version. |
Returns a countour passing through the queried point.
[Visual Basic .NET] Public Sub GetContour ( _ ByVal pPoint As IPoint, _ ByRef ppContour As IPolyline, _ ByRef pElevation As Double _ )
[C#] public void GetContour ( IPoint pPoint, ref IPolyline ppContour, ref double pElevation );
[C++]
HRESULT GetContour(
IPoint* pPoint,
IPolyline** ppContour,
System.Double* pElevation
);
[C++] Parameters pPoint [in]
pPoint is a parameter of type IPoint* ppContour [out]
ppContour is a parameter of type IPolyline** pElevation [out]
pElevation is a parameter of type double*
Returns the contour and height corresponding to a specified query point.
If the query point falls outside the interpolation zone, or on an area of zero slope, a nil polyline (nothing) is returned along with a void value for the height. You can check for a void height using ISurface.IsVoidZ.
The IPolyline pointer that is passed need not be referencing an instantiated object. GetContour will instantiate the object itself.
The returned contour elevation will be NaN when the returned contour is empty.