ArcObjects Library Reference (GeoDatabase)  

ITinEdit2.SwapEdge Method

Swap the specified edge and set the TIN as constrained Delaunay triangulation.

[Visual Basic .NET]
Public Function SwapEdge ( _
    ByVal Index As Integer, _
    ByVal Type As esriTinEdgeType, _
    ByVal Tag As Integer _
) As Integer
[C#]
public int SwapEdge (
    int Index,
    esriTinEdgeType Type,
    int Tag
);
[C++]
HRESULT SwapEdge(
  long Index,
  esriTinEdgeType Type,
  long Tag,
  long* pNewIndex
);
[C++]

Parameters

Index [in]   Index is a parameter of type long Type [in]

  Type is a parameter of type esriTinEdgeType

Tag [in]   Tag is a parameter of type long pNewIndex [out, retval]   pNewIndex is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Alters the triangulation by connecting an edge to the opposite nodes of the triangles sharing the edge. The return value from this method is the index of the resulting edge. The TIN will automatically have the ITin.IsDelaunay property set to FALSE when calling this method.

Index is the index of the TIN edge to swap.

esriTinEdgeType is assigned to the resulting edge. If you want to ensure the edge is not redefined via a subsequent edit operation that's within close proximity to the edge set it to esriTinHardEdge or esriTinSoftEdge.

Tag is the tag value assigned to the resulting edge. Use a value of 0 if you're not concerned about edge tag values.

See Also

ITinEdit2 Interface