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

[Visual Basic .NET]Public Function ExtractPolygon ( _ByValpSeedAsITinElement, _ByValpFilterAsITinFilter, _ByValbStopAtEnforcedEdgeAsBoolean _) AsITinPolygon

[C#]publicITinPolygonExtractPolygon (ITinElementpSeed,ITinFilterpFilter,boolbStopAtEnforcedEdge);

[C++]HRESULT ExtractPolygon(ITinElement*pSeed,ITinFilter*pFilter,VARIANT_BOOLbStopAtEnforcedEdge,ITinPolygon**ppPolygon);

[C++]

ParameterspSeed[in]

pSeedis a parameter of typeITinElementpFilter[in]

pFilteris a parameter of typeITinFilterbStopAtEnforcedEdge[in]bStopAtEnforcedEdgeis a parameter of typeVARIANT_BOOLppPolygon[out, retval]

ppPolygonis a parameter of typeITinPolygon

#### Product Availability

#### 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.