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


ITinFeatureEdit.ScalePolygon Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinFeatureEdit.ScalePolygon Method

Expands or shrinks the embedded polygon represented by the specified seed. pOrigin can be NULL or Nothing.

[Visual Basic .NET]
Public Sub ScalePolygon ( _
    ByVal pSeed As ITinTriangle, _
    ByVal pOrigin As IPoint, _
    ByVal Scale As Double, _
    ByVal bGetNewZ As Boolean _
)
[C#]
public void ScalePolygon (
    ITinTriangle pSeed,
    IPoint pOrigin,
    double Scale,
    bool bGetNewZ
);
[C++]
HRESULT ScalePolygon(
  ITinTriangle* pSeed,
  IPoint* pOrigin,
  double Scale,
  VARIANT_BOOL bGetNewZ
);
[C++]

Parameters pSeed [in]
pSeed is a parameter of type ITinTriangle pOrigin [in]
pOrigin is a parameter of type IPoint Scale Scale is a parameter of type double bGetNewZ [in] bGetNewZ is a parameter of type VARIANT_BOOL

Product Availability

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

Description

The TIN polygon is defined by the passed seed which is a triangle inside the polygon. The polygon's area is represented by the set of contiguous triangles with the same tag value as the seed.

The TIN polygon is scaled in reference to the specified origin point. Regardless of the location of the origin, the geometry resulting from the transformation is the same except for a positional offset. The origin is the only point in the transformation guaranteed to remain in the same location after the transformation is complete. A Null pointer ('Nothing' in VB) can be passed in which case the polygon's centroid will be used.

The scale is the ratio of old size to new - used for both x and y dimensions. Values greater than 1 increase the polygon's size. Values less than 1 decrease it.

The GetNewZ argument, if set to TRUE, means the feature is removed,  heights are interpolated for its new position from the surface (this may add vertices to capture surface detail), then it is added back in.

The TIN must be in edit mode. See ITinEdit.StartEditing and ITinFeatureEdit.StartInMemoryEditing.

See Also

ITinFeatureEdit Interface