This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditorZ Interface > IEditorZ.ZDrapingTolerance Property (ArcObjects .NET 10.5 SDK) |
Determines the allowable error from the surface when draping.
[Visual Basic .NET] Public Property ZDrapingTolerance As Double
[C#] public double ZDrapingTolerance {get; set;}
Double value that defines the maximum offset used to generalize the draped geometry. Will only remove points inserted via draping; does not affect any points explicitly defined by the user. Default value is 0. ZDrapingTolerance is only applied when IEditorZ::UseZDrapingTolerance is TRUE.
private void SetZDrapingProps(ESRI.ArcGIS.Editor.IEditor editor)
{
// the following code snippet determines the z capture source and
// if it is a surface then sets up some capture properties that apply
IEditorZ editorZ=m_editor as IEditorZ;
if (editorZ.ZCaptureType == esriZCaptureType.esriCaptureSurfaceZ)
{
editorZ.Draping=true;
editorZ.UseZDrapingTolerance=true;
editorZ.ZDrapingTolerance=2;
}
}