ArcObjects Library Reference (GeoDatabase)  

ITinFeatureEdit.ExtractPolygon Method

Extracts polygon.

[Visual Basic .NET]
Public Function ExtractPolygon ( _
    ByVal pSeed As ITinFeatureSeed, _
    ByVal bGetZ As Boolean, _
    ByVal bSkipDensifiedNodes As Boolean _
) As IPolygon
[C#]
public IPolygon ExtractPolygon (
    ITinFeatureSeed pSeed,
    bool bGetZ,
    bool bSkipDensifiedNodes
);
[C++]
HRESULT ExtractPolygon(
  ITinFeatureSeed* pSeed,
  VARIANT_BOOL bGetZ,
  VARIANT_BOOL bSkipDensifiedNodes,
  IPolygon** ppPolygon
);
[C++]

Parameters

pSeed [in]

  pSeed is a parameter of type ITinFeatureSeed

bGetZ [in]   bGetZ is a parameter of type VARIANT_BOOL bSkipDensifiedNodes [in]   bSkipDensifiedNodes is a parameter of type VARIANT_BOOL ppPolygon [out, retval]

  ppPolygon is a parameter of type IPolygon

Product Availability

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

Description

Takes a polygon embedded in the triangulation and returns it as polygon geometry.

The Seed is either a TIN triangle that is inside the polygon or a TIN edge that is on the polygon boundary. When triangle seeds are used, their tag values define the polygons. By default, edge seeds also rely on tags. Only non-zero tags are supported. Edge type can be used as a substitute for tags when using edge based seeds. To do this set ITinFeatureSeed.UseTagValue on the edge to FALSE.

If the option to GetZ is TRUE the returned polygon will be ZAware with vertex Z values set from the source nodes.

If node source information is available, the setting of SkipDensifiedNodes to TRUE will result in the exclusion of densification nodes as vertices in the resulting polygon.

The TIN polygon must be bounded by enforced edges. An error will result if this condition is not met.

The returned polygon will not be topologically simple. If you need to persist the polygon or use it for topological operations call ITopologicalOperator.Simplify first.

See Also

ITinFeatureEdit Interface