This document is archived and information here might be outdated.  Recommended version.


ISurface.GetNormal Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISurface Interface > ISurface.GetNormal Method
ArcGIS Developer Help

ISurface.GetNormal Method

Returns the normal vector to the specified location.

[Visual Basic .NET]
Public Function GetNormal ( _
    ByVal pLocation As IPoint _
) As WKSPointZ
[C#]
public WKSPointZ GetNormal (
    IPoint pLocation
);
[C++]
HRESULT GetNormal(
  IPoint* pLocation
);
[C++]
Parameters
pLocation [in]

pLocation is a parameter of type IPoint*

Product Availability

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

Description

Returns the normal vector for the location specified by the input point.

The returned vector is orthogonal to the surface (the plane defined by the triangle) and has a magnitude, or length, of 1.0.

If the surface is a TIN, the resulting vector is calculated from the triangle containing the query point. If the query point falls on a triangle edge, one of the two neighboring triangles 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.

If the surface is a raster, the resulting vector is calculated from the neighborhood of mesh points surrounding the query point.

See Also

ISurface Interface