TIN Volume Tool


Calculates volume and area statistics for portions of a TIN within a user digitized polygon boundary. Graphic feedback is also provided. The graphics feature is most effective in ArcScene.

How to use:

    Steps for adding a command/tool from a DLL:

  1. Register the DLL: TinFilters.dll. It can be found as a sample parallel in the directory tree to this sample. Its folder is called 'Tin Filters'.
  2. Register the DLL: TinVolumeTool.dll.
  3. In ArcMap or ArcScene's Customize dialog, click on 'Add from file' and select this sample's dll.
  4. Select the TIN Volume tool under the 3D Developer Samples Category on the Commands tab. Drag and drop it to the desired location in the application's user interface. Dismiss the Customize dialog.

    Using the Tool:

  1. Add a TIN to a scene or map. For the sake of graphics and exploratory analysis ArcScene works best.
  2. After selecting this tool click on the TIN in a few locations to define a polygon boundary. Double click or press F12 to close the polygon.
  3. Volume and area statisitcs will be calculated and graphics added. The statistics represent values between the plane and the surface - that is, below the plane and above the surface.
  4. The default graphics show the reference plane, and the contour at a height equal to the reference plane. These will be within the area of the polygon you digitized.
  5. The second tab of the dialog lets you turn on the triangles involved in the calculation to get a better understanding of it works. You may need to go back to the first tab and toggle the reference plane display on and off to see the triangles below the reference plane.
  6. The tool lets you select another tool, like the Navigate tool, in order to change perspective and get a better look. To really quit the Volume tool and eliminate its graphics press the Done button on its dialog.

    Steps for compiling the DLL:

  1. The VB code for this sample makes calls to one or more utility modules that are shared by a number of 3D samples. The shared modules are located in the 'Utilities' folder which is found directly below the main '3D Analyst' ArcObjects sample folder. In order to compile the DLL make sure you have the latest version of the shared modules installed.
  2. In addition to the dependency on the shared modules, this project relies on custom TIN filters found in the 'Tin Filters' sample project DLL. That is parallel in the samples directory tree to this. The TinFilters.DLL must be registered before this project will compile.


Requires: 3D Analyst

Difficulty: Intermediate

Visual Basic
File Description
TinVolumeTool.cls Implementation of ICommand for this sample.
frmTinVolumeTool.frm The user interface.
TinVolume.vbp Visual Basic Project file for the command.
TinVolumeTool.dll The compiled DLL containing the implementation of the sample.

Key CoClasses: Tin
Key Interfaces: ITinEdit
Key Members: ITinEdit::Set*TagValue, ITinEdit::PropagateTriangleTagValues