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


ITinAdvanced3.QueryElementIndicesAroundNode Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinAdvanced3 Interface > ITinAdvanced3.QueryElementIndicesAroundNode Method
ArcGIS Developer Help

ITinAdvanced3.QueryElementIndicesAroundNode Method

Returns the indices of all elements connected to the specified node.

[Visual Basic .NET]
Public Sub QueryElementIndicesAroundNode ( _
    ByVal Type As esriTinElementType, _
    ByVal localNodeIndex As Integer, _
    ByVal triangleIndex As Integer, _
    ByVal pIndices As ILongArray _
)
[C#]
public void QueryElementIndicesAroundNode (
    esriTinElementType Type,
    int localNodeIndex,
    int triangleIndex,
    ILongArray pIndices
);
[C++]
HRESULT QueryElementIndicesAroundNode(
  esriTinElementType Type,
  long localNodeIndex,
  long triangleIndex,
  ILongArray* pIndices
);
[C++]
Parameters
Type [in]

Type is a parameter of type esriTinElementType localNodeIndex [in]
localNodeIndex is a parameter of type long triangleIndex [in]
triangleIndex is a parameter of type long pIndices
pIndices is a parameter of type ILongArray*

Product Availability

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

Description

Used to return the indices of nodes, edges, or triangles around a node when the node is referenced by specifying its local position (0, 1, 2) in a triangle.

Type indicates the desired element type for the returned indices: nodes, edges, or triangles.

LocalNodeIndex is the nth position for the node of interest in the triangle. Local indices, that indicate relative position in a triangle, start at base 0. Therefore, the passed value must be 0, 1, or 2.

TriangleIndex is used to indicate which triangle the local node index is relative to. Element indexes that are global, at the TIN level rather than local to a triangle, start at base 1. Therefore the passed value must be 1..NumTriangles.

pIndices is a reference to a LongArray into which the indices will be placed. The LongArray object must already be instantiated. Any values already in the array when it's passed will be removed before the return values get added.

See related methods ITinAdvanced2 QueryEdgeIndicesAroundNodes, ITinAdvanced2.QueryNodeIndicesAroundNode, and ITinAdvanced2.QueryTriangleIndicesAroundNodes.

This method is faster than those related methods. They all require a spatial search to find an incident triangle or edge to start iterating from while this method does not.

See Also

ITinAdvanced3 Interface