This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinEdit Interface > ITinEdit.AddShapeZ Method (ArcObjects .NET 10.5 SDK) |
Adds a 3D shape to the TIN.
[Visual Basic .NET] Public Sub AddShapeZ ( _ ByVal pShape As IGeometry, _ ByVal Type As esriTinSurfaceType, _ ByVal TagValue As Integer, _ [ByRef pbUseShapeZ As Object] _ )
[C#] public void AddShapeZ ( IGeometry pShape, esriTinSurfaceType Type, int TagValue, ref object pbUseShapeZ );
Optional Values
[C++]
HRESULT AddShapeZ(
IGeometry* pShape,
esriTinSurfaceType Type,
long TagValue,
VARIANT* pbUseShapeZ
);
[C++]
Parameters pShape [in]
pShape is a parameter of type IGeometry Type [in]
Type is a parameter of type esriTinSurfaceType TagValue [in] TagValue is a parameter of type long pbUseShapeZ [optional] pbUseShapeZ is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
The input geometry, pShape, needs to have Z values defined for all vertices.
The input shape geometry can be point, multipoint, polyline, or polygon.
The esriTinSurfaceType enumeration indicates how the input geometry is to be incorporated into the TIN. The surface types which are valid depend on the type of geometry being entered. Points can only be entered as mass points. Polylines can be entered as hard or soft breakline types or have their vertices entered as mass points. Polygons can be entered as polygon, line, or mass surface types.
Tags are assigned using the TagValue argument. If the surface feature type is set to mass points the tag is assigned to the resulting TIN nodes. If the surface type is polygonal the tags are assigned to triangles. A value of 0 will result in no tag assignment.
Vertex M values can be substituted for Z's through use of the optional UseShapeZ argument. Its default value is True, causing Z's to be used. If M's are desired set it to False.
This function should not be called if the geometry IsEmpty.