This document is archived and information here might be outdated. Recommended version. |
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 );
[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 [in, optional]
pbUseShapeZ is a parameter of type VARIANT*
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.