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


ITinSurface2.LocateMultiple Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinSurface2.LocateMultiple Method

Returns the intersections of the query ray and the surface.

[Visual Basic .NET]
Public Function LocateMultiple ( _
    ByVal pRay As IRay _
) As IMultipoint
[C#]
public IMultipoint LocateMultiple (
    IRay pRay
);
[C++]
HRESULT LocateMultiple(
  IRay* pRay,
  IMultipoint** ppLocations
);
[C++]

Parameters pRay [in]
pRay is a parameter of type IRay ppLocations [out, retval]
ppLocations is a parameter of type IMultipoint

Product Availability

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

Description

Returns the intersection points between a 3D ray and the surface.

The returned multipoint will contain 0..n points depending on the number of intersections between the ray and the surface.

 

Notes:

Consider using ITinSurface3.QueryLocate or ITinSurface3.QueryLocateWithinDistance when inside a loop, for the sake of efficiency, since those methods allow you to reuse output point and multipoint objects whereas this method always creates new ones.

See Also

ITinSurface2 Interface