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


IHitTest3D.HitTest3D Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IH > IHitTest3D Interface > IHitTest3D.HitTest3D Method
ArcGIS Developer Help

IHitTest3D.HitTest3D Method

Locates a part of a geometry closest to a query point. Any located part must be within searchRadius units from the query point.

[Visual Basic .NET]
Public Function HitTest3D ( _
    ByVal QueryPoint As IPoint, _
    ByVal searchRadius As Double, _
    ByVal geometryPart As esriGeometryHitPartType, _
    ByVal hitPoint As IPoint, _
    ByRef hitDistance As Double, _
    ByRef hitPartIndex As Integer, _
    ByRef hitSegmentIndex As Integer _
) As Boolean
[C#]
public bool HitTest3D (
    IPoint QueryPoint,
    double searchRadius,
    esriGeometryHitPartType geometryPart,
    IPoint hitPoint,
    ref double hitDistance,
    ref int hitPartIndex,
    ref int hitSegmentIndex
);
[C++]
HRESULT HitTest3D(
  IPoint* QueryPoint,
  double searchRadius,
  esriGeometryHitPartType geometryPart,
  IPoint* hitPoint,
  System.Double* hitDistance,
  System.Int32* hitPartIndex,
  System.Int32* hitSegmentIndex
);
[C++]
Parameters
QueryPoint 

QueryPoint is a parameter of type IPoint* searchRadius
searchRadius is a parameter of type double geometryPart
geometryPart is a parameter of type esriGeometryHitPartType hitPoint
hitPoint is a parameter of type IPoint* hitDistance [in, out]
hitDistance is a parameter of type double* hitPartIndex [in, out]
hitPartIndex is a parameter of type long* hitSegmentIndex [in, out]
hitSegmentIndex is a parameter of type long*

Product Availability

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

See Also

IHitTest3D Interface