|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:
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'.
Register the DLL: TinVolumeTool.dll.
In ArcMap or ArcScene's Customize dialog, click on 'Add from file' and select this sample's dll.
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:
Add a TIN to a scene or map. For the sake of graphics and exploratory analysis ArcScene works best.
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.
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.
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.
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.
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:
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
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.
||Implementation of ICommand for this sample.
||The user interface.
||Visual Basic Project file for the command.
||The compiled DLL containing the implementation of the sample.