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


ILasDatasetEdit.AddSurfaceConstraint Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IL > ILasDatasetEdit Interface > ILasDatasetEdit.AddSurfaceConstraint Method
ArcGIS Developer Help

ILasDatasetEdit.AddSurfaceConstraint Method

Adds surface constraint (e.g., breaklines) to the dataset.

[Visual Basic .NET]
Public Sub AddSurfaceConstraint ( _
    ByVal pFeatureClass As IFeatureClass, _
    ByVal pHeightField As IField, _
    ByVal pTagField As IField, _
    ByVal Type As esriTinSurfaceType _
)
[C#]
public void AddSurfaceConstraint (
    IFeatureClass pFeatureClass,
    IField pHeightField,
    IField pTagField,
    esriTinSurfaceType Type
);
[C++]
HRESULT AddSurfaceConstraint(
  IFeatureClass* pFeatureClass,
  IField* pHeightField,
  IField* pTagField,
  esriTinSurfaceType Type
);
[C++]
Parameters
pFeatureClass [in]

pFeatureClass is a parameter of type IFeatureClass* pHeightField [in]
pHeightField is a parameter of type IField* pTagField [in]
pTagField is a parameter of type IField* Type [in]
Type is a parameter of type esriTinSurfaceType

Product Availability

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

Description

This method allows the addition of feature classes as surface constraints. Breaklines and clip polygons can be added in the form of line and polygon feature classes.

pFeatureClass is the feature class to be added.

pHeightField is the field that indicates where the heights for the features come from. If the shape geometry is 3D, and that's what you want to use, pass the Shape field of the feature class. Otherwise, a numeric field can be used. If the heights for the features should be interpolated from the existing state of the surface, pass a NULL pointer ('Nothing' in VB) to indicate the features do not have Z values of their own.

pTagField is a numeric field used to assign tags to corresponding elements in the TIN. Tag values are signed long integers that are assigned to nodes, edges, or triangles. They have user defined meaning (e.g. node accuracy, land cover, etc.). If no tag values are to be used pass a NULL pointer ('Nothing' in VB).

Type indicates how the surface constraint is incorporated into the triangulation.

See Also

ILasDatasetEdit Interface