This document is archived and information here might be outdated.  Recommended version.


ITinAdvanced.ExtractPolygon Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinAdvanced Interface > ITinAdvanced.ExtractPolygon Method
ArcGIS Developer Help

ITinAdvanced.ExtractPolygon Method

Returns a polygon definition based on all contiguous triangles having the same filter criteria.

[Visual Basic .NET]
Public Function ExtractPolygon ( _
    ByVal pSeed As ITinElement, _
    ByVal pFilter As ITinFilter, _
    ByVal bStopAtEnforcedEdge As Boolean _
) As ITinPolygon
[C#]
public ITinPolygon ExtractPolygon (
    ITinElement pSeed,
    ITinFilter pFilter,
    bool bStopAtEnforcedEdge
);
[C++]
HRESULT ExtractPolygon(
  ITinElement* pSeed,
  ITinFilter* pFilter,
  VARIANT_BOOL bStopAtEnforcedEdge
);
[C++]
Parameters
pSeed [in]

pSeed is a parameter of type ITinElement* pFilter [in]
pFilter is a parameter of type ITinFilter* bStopAtEnforcedEdge [in]
bStopAtEnforcedEdge is a parameter of type bool

Product Availability

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

Description

Returns a TinPolygon that references the polygon defined by the input seed and filter.

The seed is a TIN triangle that falls within the desired polygon or a TIN edge that falls on its boundary. An edge seed can only extract a single part polygon without holes.

The filter defines the criteria used to extract the polygon. Starting from a triangle based seed outward, all triangles that can pass through the filter are considered part of the polygon (the inside). If an edge is given as a seed, connected edges that pass through the filter are used to define the polygon boundary.

The filter argument can be NULL ('Nothing' in VB) if the seed is a triangle. A filter is required if the seed is an edge.

Use no filter with the bStopAtEnforcedEdge argument set to TRUE to extract polygons whose definition is that they are enclosed by breaklines. Be careful, no filter with bStopAtEnforcedEdge set to FALSE is guaranteed to return all triangles in the TIN. Also, while an area may look closed it may not actually be. This can return many more triangles than expected.

See Also

ITinAdvanced Interface