Fence Diagram (3D Analyst)


Constructs a vertical cross-section of a collection of surfaces.


Fence Diagram


  • A fence diagram provides a useful way to visualize the space between multiple overlapping surfaces in 3D space, such as stratigraphic data.

  • Bilinear interpolation will be used to derive the height along a raster surface. For TIN surfaces, natural neighbor and linear interpolation options can be specified.

  • A table of the x,y,z-values in the fence diagram can be generated with the Stack Profile tool.


FenceDiagram(in_line_features, in_surface, out_feature_class, {method}, {floor_height}, {ceiling_height}, {sample_distance})
ParameterExplanationData Type

The line features that will be used to construct the fence diagram.

Feature Layer

The surfaces that will be used to construct the fence diagram.

Mosaic Layer; Raster Layer; TIN Layer

The output multipatch that is composed of vertical faces that depict the fence diagram.

Feature Class

The interpolation method that will be used to obtain z-values from TIN surfaces when constructing the fence diagram. This parameter does not apply to raster surfaces.

  • LINEARLinear interpolation will be used. This is the default.
  • NATURAL_NEIGHBORSNatural neighbors interpolation will be used.

A constant height used to define the lowest height of the fence diagram.

Linear Unit

A constant height used to define the highest height of the fence diagram.

Linear Unit

The horizontal distance used for determining the positions where height measurements are interpolated from the underlying surfaces.

Linear Unit

Code sample

FenceDiagram example 1 (Python window)

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

arcpy.env.workspace = 'c:/data'
                       ['alluvium.tif', 'white_limestone.tif', 'yellow_limestone.tif'], 
                       'fence_diagram.shp', sample_distance='5 Meters')

Licensing information

  • Basic: Requires 3D Analyst
  • Standard: Requires 3D Analyst
  • Advanced: Requires 3D Analyst

Related topics