ArcObjects Library Reference (GeoDatabase)  

ITinEdit.AddShapeZ Method

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#]

Optional Values

pbUseShapeZ   To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[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.

Product Availability

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

Description

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.

See Also

ITinEdit Interface