This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinSurface2 Interface > ITinSurface2.LocateMultiple Method (ArcObjects .NET 10.4 SDK) |
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
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.