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


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

ITinFeatureEdit.CanScalePolygon Method

Checks if the embedded polygon can be expanded or shrinked without creating spatial conflict. pOrigin can be NULL or Nothing.

[Visual Basic .NET]
Public Function CanScalePolygon ( _
    ByVal pSeed As ITinTriangle, _
    ByVal pOrigin As IPoint, _
    ByVal Scale As Double, _
    ByVal spacing As Double _
) As Boolean
[C#]
public bool CanScalePolygon (
    ITinTriangle pSeed,
    IPoint pOrigin,
    double Scale,
    double spacing
);
[C++]
HRESULT CanScalePolygon(
  ITinTriangle* pSeed,
  IPoint* pOrigin,
  double Scale,
  double spacing
);
[C++]
Parameters
pSeed [in]

pSeed is a parameter of type ITinTriangle* pOrigin [in]
pOrigin is a parameter of type IPoint* Scale [in]
Scale is a parameter of type double spacing [in]
spacing is a parameter of type double

Product Availability

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

Description

Determines if the TIN polygon can be scaled without creating a conflict.

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.

A conflict results if any TIN features are within the specified spacing of the proposed geometry. This includes distance to feature edges as well as nodes.

The ITinFeatureEdit.ElementsIgnoredInConflictTest setting determines what, if any, TIN elements are excluded from the conflict test.

See Also

ITinFeatureEdit Interface