# Decimate TIN Nodes (3D Analyst)

## Summary

Creates a TIN using a subset of nodes from an input TIN.

## Usage

• The following decimation options are available:

• Z-Tolerance—Generates the output TIN that is within a known vertical accuracy of the input TIN.
• Count—Generates the output TIN by limiting the number of nodes that are retained from the input TIN.
• When using the Z Tolerance option, the vertical tolerance should be given in the Z units of the input TIN.

## Syntax

DecimateTinNodes_3d (in_tin, out_tin, method, {copy_breaklines})
 Parameter Explanation Data Type in_tin The input TIN. TIN Layer out_tin The output TIN dataset. TIN method"ZTOLERANCE " or "COUNT " Specifies the decimation method for selecting a subset of nodes from the input TIN. ZTOLERANCE — Generalizes TIN within a specified vertical accuracy. An optional node limit can also be specified. This parameter is supplied as a string, so "ZTOLERANCE 0.5 5500" would represent a Z-tolerance value of 0.5 and a max node value of 5,500. COUNT —Generalizes TIN by constraining its size to a specified node limit. This parameter is supplied as a string, so "COUNT 5500" would represent a maximum node count of 5,500. Decimate copy_breaklines(Optional) Indicates whether breaklines from the input TIN are copied over to the output. BREAKLINES —Breaklines will be copied. NO_BREAKLINES —Breaklines will not be copied. This is the default. Boolean

## Code Sample

DecimateTINNodes example 1 (Python window)

The following sample demonstrates the use of this tool in the Python window:

```import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.DecimateTinNodes_3d("tin", "tin_simple", "COUNT 5000" "BREAKLINES")

```
DecimateTINNodes example 2 (stand-alone script)

The following sample demonstrates the use of this tool in a stand-alone Python script:

```'''****************************************************************************
Name: DecimateTinNodes Example
Description: This script demonstrates how to use the
DecimateTinNodes tool.
****************************************************************************'''

# Import system modules
import arcpy
from arcpy import env

# Obtain a license for the ArcGIS 3D Analyst extension
arcpy.CheckOutExtension("3D")

# Set environment settings
env.workspace = "C:/data"

# Set Local Variables
inTin = "elevation"
method = "COUNT 5000"
copyBrk = "BREAKLINES"
# Ensure output name is unique
outTin = arcpy.CreateUniqueName("simple_elev")

#Execute DecimateTinNodes
arcpy.DecimateTinNodes_3d(inTin, outTin, method, copyBrk)```

## Licensing Information

ArcView: Requires 3D Analyst
ArcEditor: Requires 3D Analyst
ArcInfo: Requires 3D Analyst

6/10/2013