Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get only the nodes on the absolute boundary of a Tin. But GetNeighbor or LeftTriangle methods return edges whose nodes have NaN Z and very weird X-Y coordinates, so the row is inserted in the feature class without a feature.

Is there any other method or am I doing anything wrong? Thanks, Mar

Dim i As Integer For i = 1 To pTinAdvC1.TriangleCount

Set pTinTriangleC1 = pTinAdvC1.GetTriangle(i)

    Dim j As Integer
    For j = 0 To 2

        If pTinTriangleC1.Edge(j).GetNeighbor Is Nothing Then

        Dim pTinEdge As ITinEdge
        Set pTinEdge = pTinTriangleC1.Edge(j)

        Dim pBorderP As IPoint
        Set pBorderP = New Point
        Set pZAwarePoint = pBorderP
        pZAwarePoint.ZAware = True

        pTinEdge.FromNode.QueryAsPoint pBorderP

        Set pPointLayer = pScene.Layer(2)
        Set pPointFC = pPointLayer.FeatureClass
        Set pFeat = pPointFC.CreateFeature
        On Error Resume Next
        Set pFeat.Shape = pBorderP

        End If


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.