This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinEdit2 Interface > ITinEdit2.SwapEdge Method (ArcObjects .NET 10.4 SDK) |
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
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.