Is Closed 3D (3D Analyst)

Summary

Evaluates multipatch features to determine whether each feature completely encloses a volume of space.

Usage

  • This tool will add a new field called IsClosed that indicates whether a given feature is closed.

  • Consider using the Enclose Multipatch tool to construct closed features out of those that are not closed.

Parameters

LabelExplanationData Type
Input Multipatch Features

The multipatch features to be tested.

Feature Layer

Derived Output

LabelExplanationData Type
Updated Input Multipatch Features

The updated multipatch features.

Feature Layer

arcpy.ddd.IsClosed3D(in_feature_class)
NameExplanationData Type
in_feature_class

The multipatch features to be tested.

Feature Layer

Derived Output

NameExplanationData Type
output_feature_class

The updated multipatch features.

Feature Layer

Code sample

IsClosed example 1 (Python window)

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

import arcpy
from arcpy import env

env.workspace = 'C:/data'
arcpy.IsClosed3D_3d('sample_multipatch.shp')
IsClosed example 2 (stand-alone script)

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

'''****************************************************************************
Name: IsClosed3D Example
Description: This script demonstrates how to use the
             IsClosed3D tool on all multipatches in a target workspace.
****************************************************************************'''
# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = 'C:/data'
# Set Local Variables
for fc in arcpy.ListFeatureClasses(): # list features in workspace
    # Determine which features are multipatches
    if arcpy.Describe(fc).shapeType == 'MultiPatch':
        # Execute Is Closed 3D
        arcpy.IsClosed3D_3d(fc)

Licensing information

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

Related topics