MapWinGIS:Tin Triangle

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Tin_Triangle"

This page has been accessed 1,157 times. This page was last modified on 9 November 2005, at 17:23.