ITinNodeCollection Interface

Provides access to members that control TIN nodes.

Members

Name Description
Method ConvertToVoronoiRegions Writes the set of Voronoi polygons for each node to a feature class.
Method GetNode The node referenced by the index.
Method GetNodeTagValue Returns the tag value of the TIN node specified by the index.
Method GetNodeZ Returns the z value of the node referenced by the index.
Method GetVoronoiRegion Returns a Voronoi polygon about the node referenced by the index.
Method GetVoronoiRegionNoClip Returns a Voronoi polygon about the node referenced by the index.
Read-only property HasNodeTagValues Indicates if TIN nodes have tag values.
Read-only property NodeCount The number of nodes in the TIN.
Method QueryNode Sets the node equal to that specified by the index.
Method QueryNodeAsPoint Sets the node equal to a point specified by the index.
Method QueryNodeAsWKSPointZ Sets the node equal to a z-value point specified by the index.

ITinNodeCollection.ConvertToVoronoiRegions Method

Writes the set of Voronoi polygons for each node to a feature class.

Public Sub ConvertToVoronoiRegions ( _
    ByVal pFeatureClass As IFeatureClass, _
    ByVal pFilter As ITinFilter, _
    ByVal pClippingPolygon As IPolygon, _
    ByVal indexFieldName As String, _
    ByVal tagFieldName As String _
)
public void ConvertToVoronoiRegions (
    IFeatureClass pFeatureClass,
    ITinFilter pFilter,
    IPolygon pClippingPolygon,
    string indexFieldName,
    string tagFieldName
);

Description

The FeatureClass should be an empty 2D polygon feature class. The Voronoi/Thiessen polygons will be written to it.

The Filter is used to determine which nodes to generate Voronoi/Thiessen polygons for. A Null pointer ('Nothing' in VisualBasic) can be passed in which case all nodes will be processed.

Output polygons will be intersected with the specified ClippingPolygon. A Null pointer ('Nothing' in VB) can be passed in which case a default polygon, which is a rectangulat bounding box that is slightly larger than the TINs FullExtent, will be used.

The indexFieldName is the name of the field added to the output feature class that's used to record the source node index for the polygon. If an empty string is passed the name "NodeIndex" is used as a default.

The tagFieldName is the name of the field added to the output feature class that's used to record the source node tag value for the polygon. If an empty string is passed the name "TagValue" is used as a default.

When constructing the TIN from a feature class it can be useful to specify the OIDField as the source of node tags. This way the output Voronoi/Thiessen polygons can be joined to the source features by associating the Thiessen polygon's TagField to the input feature's OIDField.

Since this method added fields to the specified feature class make sure WorkspaceEdit is off as it does not permit this type of schema modification.

ITinNodeCollection.GetNode Method

The node referenced by the index.

Public Function GetNode ( _
    ByVal Index As Integer _
) As ITinNode
public ITinNode GetNode (
    int Index
);

ITinNodeCollection.GetNodeTagValue Method

Returns the tag value of the TIN node specified by the index.

Public Function GetNodeTagValue ( _
    ByVal Index As Integer _
) As Integer
public int GetNodeTagValue (
    int Index
);

ITinNodeCollection.GetNodeZ Method

Returns the z value of the node referenced by the index.

Public Function GetNodeZ ( _
    ByVal Index As Integer _
) As Double
public double GetNodeZ (
    int Index
);

ITinNodeCollection.GetVoronoiRegion Method

Returns a Voronoi polygon about the node referenced by the index.

Public Function GetVoronoiRegion ( _
    ByVal nodeIndex As Integer, _
    ByVal pClippingPolygon As IPolygon _
) As IPolygon
public IPolygon GetVoronoiRegion (
    int nodeIndex,
    IPolygon pClippingPolygon
);

Description

The Voronoi region (also known as Thiessen or proximal polygon) that is returned encloses an area that is closer to the source node than to any other node in the triangulation.

'Nothing' (a null pointer) can be passed as the clip polygon. In this case, a default rectangle will be used to clip the voronoi region. The rectangle is set to be somewhat larger than the FullExtent of the TIN.

GetVoronoiRegion used on a _super_node will return Nothing (a null pointer). Super nodes are added by the software when the TIN is initially created and reside far outside the declared data extent.

If you wish to process the entire TIN and write the output to a feature class consider ITinNodeCollection.ConvertToVoronoiRegions.

ITinNodeCollection.GetVoronoiRegionNoClip Method

Returns a Voronoi polygon about the node referenced by the index.

Public Function GetVoronoiRegionNoClip ( _
    ByVal nodeIndex As Integer _
) As IPolygon
public IPolygon GetVoronoiRegionNoClip (
    int nodeIndex
);

ITinNodeCollection.HasNodeTagValues Property

Indicates if TIN nodes have tag values.

Public ReadOnly Property HasNodeTagValues As Boolean
public bool HasNodeTagValues {get;}

ITinNodeCollection.NodeCount Property

The number of nodes in the TIN.

Public ReadOnly Property NodeCount As Integer
public int NodeCount {get;}

ITinNodeCollection.QueryNode Method

Sets the node equal to that specified by the index.

Public Sub QueryNode ( _
    ByVal Index As Integer, _
    ByVal pNode As ITinNode _
)
public void QueryNode (
    int Index,
    ITinNode pNode
);

ITinNodeCollection.QueryNodeAsPoint Method

Sets the node equal to a point specified by the index.

Public Sub QueryNodeAsPoint ( _
    ByVal Index As Integer, _
    ByVal pPoint As IPoint _
)
public void QueryNodeAsPoint (
    int Index,
    IPoint pPoint
);

ITinNodeCollection.QueryNodeAsWKSPointZ Method

Sets the node equal to a z-value point specified by the index.

Public Sub QueryNodeAsWKSPointZ ( _
    ByVal Index As Integer, _
    ByRef pPoint As WKSPointZ _
)
public void QueryNodeAsWKSPointZ (
    int Index,
    ref WKSPointZ pPoint
);

Classes that implement ITinNodeCollection

Classes Description
Tin The Esri TIN component.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.