ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinEdgeType Enumeration
Example Example

In This Topic
    TinEdgeType Enumeration
    In This Topic
    TIN edge types. See TinEdge.EdgeType.
    Syntax
    Members
    MemberDescription
    HardEdge Hard edge.
    RegularEdge Regular edge.
    SoftEdge Soft edge.
    Example
    Search for TIN Edges
    // search all edges
    using (ArcGIS.Core.Data.Analyst3D.TinEdgeCursor edgeCursor = tinDataset.SearchEdges(null))
    {
      while (edgeCursor.MoveNext())
      {
        using (ArcGIS.Core.Data.Analyst3D.TinEdge edge = edgeCursor.Current)
        {
    
        }
      }
    }
    
    // search within an extent
    ArcGIS.Core.Data.Analyst3D.TinEdgeFilter edgeFilter = new ArcGIS.Core.Data.Analyst3D.TinEdgeFilter();
    edgeFilter.FilterEnvelope = envelope;
    using (ArcGIS.Core.Data.Analyst3D.TinEdgeCursor edgeCursor = tinDataset.SearchEdges(edgeFilter))
    {
      while (edgeCursor.MoveNext())
      {
        using (ArcGIS.Core.Data.Analyst3D.TinEdge edge = edgeCursor.Current)
        {
    
        }
      }
    }
    
    // search all "inside" edges
    edgeFilter = new ArcGIS.Core.Data.Analyst3D.TinEdgeFilter();
    edgeFilter.FilterType = ArcGIS.Core.Data.Analyst3D.TinFilterType.InsideDataArea;
    using (ArcGIS.Core.Data.Analyst3D.TinEdgeCursor edgeCursor = tinDataset.SearchEdges(edgeFilter))
    {
      while (edgeCursor.MoveNext())
      {
        using (ArcGIS.Core.Data.Analyst3D.TinEdge edge = edgeCursor.Current)
        {
    
        }
      }
    }
    
    // search for hard edges
    edgeFilter = new ArcGIS.Core.Data.Analyst3D.TinEdgeFilter();
    edgeFilter.FilterByEdgeType = true;
    edgeFilter.EdgeType = ArcGIS.Core.Data.Analyst3D.TinEdgeType.HardEdge;
    using (ArcGIS.Core.Data.Analyst3D.TinEdgeCursor edgeCursor = tinDataset.SearchEdges(edgeFilter))
    {
      while (edgeCursor.MoveNext())
      {
        using (ArcGIS.Core.Data.Analyst3D.TinEdge edge = edgeCursor.Current)
        {
    
        }
      }
    }
    TIN Edges
    // nodes of the edge
    var nodes = edge.Nodes;
    
    // edge geometry
    var polyline = edge.ToPolyline();
    // edge length
    var length = edge.Length;
    // is the edge "inside"
    var isInsideEdge = edge.IsInsideDataArea;
    // edge type - regular/hard/soft
    var edgeType = edge.EdgeType;
    
    // get next (clockwise) edge in the triangle
    var nextEdge = edge.GetNextEdgeInTriangle();
    // get previous (anti-clockwise) edge in the triangle
    var prevEdge = edge.GetPreviousEdgeInTriangle();
    
    // get opposite edge
    var oppEdge = edge.GeNeighbor();
    
    // get left triangle
    var leftTriangle = edge.LeftTriangle;
    // get right triangle
    var rightTriangle = edge.RightTriangle;
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.Data.Analyst3D.TinEdgeType

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also