ArcObjects Library Reference (GeoDatabase)  

ITinSurface.GetSurfaceElement Method

Returns the surface element at the specified location.

[Visual Basic .NET]
Public Function GetSurfaceElement ( _
    ByVal pPoint As IPoint _
) As ITinSurfaceElement
[C#]
public ITinSurfaceElement GetSurfaceElement (
    IPoint pPoint
);
[C++]
HRESULT GetSurfaceElement(
  IPoint* pPoint,
  ITinSurfaceElement** ppElement
);
[C++]

Parameters

pPoint [in]

  pPoint is a parameter of type IPoint

ppElement [out, retval]

  ppElement is a parameter of type ITinSurfaceElement

Product Availability

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

Description

A surface element contains information about the TIN and the surface it defines specific to a given point position. It maintains the surface attributes of elevation, slope, and aspect, as well as the the index and tag value of the containing triangle, and the index and tag value of the closest node in the containing triangle.

The element is constructed from the triangle containing the query point. If the query point falls on a triangle edge, one of the triangles on either side is picked randomly by the software.  If the query point falls on a TIN node the triangle used is picked randomnly from those incident to the node.

A Nil pointer (nothing) is returned when the query point falls outside the interpolation zone.

See Also

ITinSurface Interface