TriangleNeighbors
Gets the indices of the specified triangle's neighboring
triangles in the TIN.
VB.NET Usage
Sub TriangleNeighbors(TriIndex As Integer, ByRef triIndex1 As
Integer, ByRef triIndex2 As Integer, ByRef triIndex3 As
Integer)
Parameters
TriIndex |
The index of the triangle to get the neighbors of in the TIN. |
triIndex1 | Reference parameter. The index of the first neighbor the specified triangle. |
triIndex2 | Reference parameter. The index of the second neighbor the specified triangle. |
triIndex3 | Reference parameter. The index of the third neighbor the specified triangle.. |
Sample Code
Private Sub TIN_TriangleNeighbors() Dim tin As New MapWinGIS.Tin() Dim neighbor1 As Integer, neighbor2 As Integer, neighbor3 As Integer 'Get the index of each of triangle 0's neighbors in the TIN tin.TriangleNeighbors(0, neighbor1, neighbor2, neighbor3) End Sub
VB 6 Usage
Sub TriangleNeighbors(TriIndex As
Long, ByRef triIndex1 As Long, ByRef triIndex2 As Long, ByRef
triIndex3 As Long)
Parameters
TriIndex |
The index of the triangle to get the neighbors of in the TIN. |
triIndex1 | Reference parameter. The index of the first neighbor the specified triangle. |
triIndex2 | Reference parameter. The index of the second neighbor the specified triangle. |
triIndex3 | Reference parameter. The index of the third neighbor the specified triangle.. |
Sample Code
Private Sub TIN_TriangleNeighbors() Dim tin As New MapWinGIS.tin Dim neighbor1 As Long, neighbor2 As Long, neighbor3 As Long 'Get the index of each of triangle 0's neighbors in the TIN tin.TriangleNeighbors 0, neighbor1, neighbor2, neighbor3 End Sub