Adds polygon. pSeed can be NULL or Nothing.
[Visual Basic .NET] Public Sub AddPolygon ( _ ByVal pShape As IPolygon, _ ByVal Type As esriTinEdgeType, _ ByVal TagValue As Integer, _ ByVal edgeTagValue As Integer, _ ByVal NodeTagValue As Integer, _ ByVal pSeed As ITinTriangle, _ [ByRef pZ As Object] _ )
[C#] public void AddPolygon ( IPolygon pShape, esriTinEdgeType Type, int TagValue, int edgeTagValue, int NodeTagValue, ITinTriangle pSeed, ref object pZ );
Optional Values
[C++]
HRESULT AddPolygon(
IPolygon* pShape,
esriTinEdgeType Type,
long TagValue,
long edgeTagValue,
long NodeTagValue,
ITinTriangle* pSeed,
VARIANT* pZ
);
[C++]Parameters
pShape [in]pShape is a parameter of type IPolygon
Type [in]Type is a parameter of type esriTinEdgeType
TagValue [in] TagValue is a parameter of type long edgeTagValue [in] edgeTagValue is a parameter of type long NodeTagValue [in] NodeTagValue is a parameter of type long pSeedpSeed is a parameter of type ITinTriangle
pZ [optional] pZ is a parameter of type VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Product Availability
Description
The Shape, a 2D polygon object, represents the input geometry to be added.
The Type indicates how the resulting edges of the embedded polygon will be coded. Supported edge types are esriTinHardEdge, esriTinRegularEdge, and esriTinSoftEdge.
The TagValue is a signed, non-zero, long integer that will be assigned to the triangles inside the embedded polygon.
The edgeTagValue is a signed long integer that will be assigned to the embedded polygon edges. A zero can be used to ignore edge tag value assignment.
The NodeTagValue is a signed long integer that will be assigned to the embedded polygon nodes. A zero can be used to ignore node tag value assignment.
The Seed is a TinTriangle pointer. If you're interested in obtaining a seed that can be used as a handle to the added polygon then have the seed point to a TinTriangle object. The object will then be populated with the appropriate properties. If you're not interested in obtaining a seed then pass a NULL pointer ('Nothing' in VisualBasic).
The optional Z can be used to define a constant height to be used for the added polygon. If unspecified, heights will be interpolated off the existing surface.