Triangle
Gets the vertex indices of the specified triangle in the
TIN.
VB.NET Usage
Sub Triangle(TriIndex As Integer, ByRef vtx1Index As Integer, ByRef
vtx2Index As Integer, vtx3Index As Integer)
Parameters
TriIndex |
The index of the triangle in the TIN for which the vertex indices are required. |
vtx1Index | Reference parameter. The index of the first vertex in the specified triangle in the TIN. |
vtx2Index | Reference parameter. The index of the second vertex in the specified triangle in the TIN. |
vtx3Index | Reference parameter. The index of the third vertex in the specified triangle in the TIN. |
Sample Code
Private Sub TIN_Triangle() Dim tin As New MapWinGIS.Tin() Dim vertex1index As Integer, vertex2index As Integer, vertex3index As Integer 'Get the vertex indices of triangle 0 in the TIN tin.Triangle(0, vertex1index, vertex2index, vertex3index) End Sub
VB 6 Usage
Sub Triangle(TriIndex As Long, ByRef vtx1Index As
Long, ByRef vtx2Index As Long, vtx3Index As Long)
Parameters
TriIndex |
The index of the triangle in the TIN for which the vertex indices are required. |
vtx1Index | Reference parameter. The index of the first vertex in the specified triangle in the TIN. |
vtx2Index | Reference parameter. The index of the second vertex in the specified triangle in the TIN. |
vtx3Index | Reference parameter. The index of the third vertex in the specified triangle in the TIN. |
Sample Code
Private Sub TIN_Triangle() Dim tin As New MapWinGIS.tin Dim vertex1index As Long, vertex2index As Long, vertex3index As Long 'Get the vertex indices of triangle 0 in the TIN tin.Triangle 0, vertex1index, vertex2index, vertex3index End Sub