CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 2565 

CAD tip CAD tip # 11054:

Question CAD 
 %  platform  category 
Q - question

Difference volume (3D solid) between two TIN surfaces (sets of coordinates)

A - answer One of the most common tasks in civil engineering projects is a calculation of the volume between two surfaces - e.g. for volume of earth moving between the old and new shape of the terrain surface (topo surface).

If you have AutoCAD Civil 3D, it is just a matter of running the right standard function for such calculation. But if you have just a plain AutoCAD, such task is not easy to solve.

Let's have a two sets of point coordinates, describing the existing (old) and planned (new) terrain surface. First you will need to create a 3D surface from these points. Again, just a snap in AutoCAD Civil 3D; but in plain AutoCAD you will need an add-on tool - e.g. the DTM freeware LISP utility by CAD Studio (see also the Tip 5934). Its command DTM will help you make the TIN surfaces (3DFACES) from the individual point sets - here the random (DTMRND command) green and red surfaces (colored manually, recommended to put into separate layers for easier selection):

There are more add-on applications like this - almost all of these DTM tools make triangular 3D faces as the result.

To calculate the volume between two surfaces, we need to "normalize" their shape - they should share the same border exactly (in the plan view) so that the total volume can be calculated as a sum of the individual prisms between the surfaces. In most cases, this means you need to trim one or both terrain surfaces - either by extruding the border curve of the smaller of them, or by creating an auxiliar "trimming" 3D box (prism). We will also need to make AutoCAD "Surface" objects from all these components to finally generate the resulting 3D solid and read its volume.

Draw the trimming box with the MESH Box command (or extrude any polyline to a 3D mesh). You can draw it in the plane view and use the .XY point filters - specify the Z coordinate to make the box with sufficient height. See the resulting white semitransparent object. Convert this box and both terrains to Surface objects with the command CONVTOSURFACE. Select all terrain triangles (3DFACES) of the particular terrain.

You may want to delete the old 3DFACEs and maybe also the control POINTs - use the QSELECT filter to do this.

Now we have to prepare the "sides" and "top" and "bottom" part of the future 3D solid. For this, we have to cut the existing top and bottom planes of the trim-box (prism). Use the PLANESURF command to draw an auxiliar plane surface and copy it (grips) above the top terrain and below the bottom terrain, so that it still cuts the box:

Use the Surface > Edit ribbon and its command SURFTRIM to cut the trim-box. Follow its prompts - you have to select the trim box, then the cutting plane and again the box (above the plane in the top case, below the plane in the bottom case).

The last part of the procedure is "sculpting" the 3D Solid. Start the command SURFSCULPT and select the trimmed box (prism; without the trimming planes) and both terrains (window select) on its prompt:

This will create the resulting 3D solid:

and you can analyse its volume and other mass parameters with the command MASSPROP:

100% *  CAD 
21.8.2016    2904×   FAQ  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD Civil 3D ·

See also:
Tip 11511:Assigning elevations to 2D contours (isolines).
Tip 11068:Unknown icon in an AutoCAD Civil 3D project.
Tip 10365:Coordinate Tracker vs. Track Coordinates - how to track XYZ in Civil3D?
Tip 9917:Cannot create terrain model from attached point cloud in AutoCAD Civil 3D 2015.
Tip 9625:How to color 3D topo surface model by slope?

Back   All CAD Tips All CAD tips&tricks

AutoCAD installation prompts to "Insert Disc 1". « | » Can I use the default parameter URL to reference a relative link?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.