One of the most fundamental elements in a three-dimensional model of any design is the surface model. As you learned in the previous chapter, once survey information is gathered and points are set with elevations, you can proceed to turn some of that information into an intelligent surface model.
This chapter examines various methods of surface creation and editing. Then it moves into discussing ways to view, analyze, and label surfaces and explores how they interact with other parts of your project.
In this chapter, you will learn to:
A surface in the Autodesk® AutoCAD® Civil 3D® program is generated using the principle of triangulation. At the very simplest, a surface consists of points. The computer generates a triangular plane using a group of three points. Each triangular plane shares an edge with another, and a continuous surface is made. This methodology is referred to as a triangulated irregular network (TIN), as shown in Figure 4.1.
For any given (x,y) point, there can be only one unique z value within the surface (since slope is equal to rise over run, when the run is equal to 0, the result is “undefined”). What does this mean to you? It means surfaces created by Civil 3D have several rules:
There are four types of surfaces in Civil 3D: TIN surfaces, grid surfaces, grid volume surfaces, and TIN volume surfaces. A TIN surface is based on a set of points using Delaunay triangulation. A grid surface is based on a Digital Elevation Model (DEM) file consisting of a set of data points arranged in a regularly spaced grid configuration. DEM files can be obtained from various mapping agencies. Volume surfaces are built by measuring vertical distances between two surfaces. Volume surfaces can be created from two grid or two TIN surfaces.
When you first create a surface in Civil 3D, you give it a name and set its style. Initially, your surface will be empty, containing no data; your next step is to add data to the surface definition.
In Prospector, you can view the contents of the surface by expanding its branch and then further expanding the Definition area, as shown in Figure 4.2.
The following components can be used as part of a surface definition:
Usually, existing surfaces are created from data collected from topographic surveys. From that data, a set of relevant surface points can be isolated by defining a point group. This point group is a quick means of adding point data to a surface definition. Point groups are covered in Chapter 3, “Points.”
In the exercise that follows, you'll build your first basic surface with a point group:
0401_SurfaceFromPointGroup.dwg
(0401_SurfaceFromPointGroup_METRIC.dwg
), which you can download from this book's web page, www.sybex.com/go/masteringcivil3d2016
.0401_SurfaceFromPointGroup_FINISHED.dwg
or 0401_SurfaceFromPointGroup_METRIC_FINISHED.dwg
if desired.Breaklines change the triangulation of a surface by forcing triangle edges to follow along the segments of the breakline. Breaklines represent linear features where a change in the slope of a surface occurs. Examples of such features would be ridges, streams, ditches, curbs, and retaining walls, just to name a few.
There are several methods for adding breaklines to a surface. On the Prospector tab of Toolspace, you can select the Breakline branch of the surface definition, right-click, and select Add. Additionally, you can easily add survey figures by going to the Survey tab of Toolspace, right-clicking the Figures branch, and selecting Create Breaklines. When feature lines are selected, an Add To Surface As Breakline option is displayed in the contextual tab.
No matter which method you use to add breaklines to a surface's definition, you will need to configure the type of breakline that it is. The breakline types are as follows:
By far, standard is the most frequently used type of breakline, followed by proximity and wall breaklines.
Turning on Weeding Factors in the Add Breaklines dialog allows you to omit extraneous data from your surface. You will want to consider weeding when your breaklines contain a lot of vertices very close together. Each vertex is added to your surface as a point, so when you weed, your aim is to exclude extraneous point data. This not only reduces the size of your surface but helps to eliminate the formation of skinny triangles, which can produce saw-toothed contours.
Weeding requires that a distance and angle be entered in the Add Breaklines dialog. With these settings, the program will examine each vertex as follows:
Turning on Supplementing Factors in the Add Breaklines dialog enables you to add additional surface points along your breaklines. Doing this helps to eliminate the generation of long triangle lines. It also allows you to define breaklines more precisely along curves.
The Distance setting works like the AutoCAD measure command. When breaklines are added to a surface, Civil 3D will add additional vertices based on this increment value.
The Mid-ordinate Distance setting is applied to arc segments in your breaklines. If this setting were absent, the program would create a single breakline segment from the PC to the PT of the arc. With this setting in place, the program creates shorter segments along the arc. With each segment considered to be tiny chords, the Mid-ordinate Distance value is the resulting measurement from the midpoint of each chord to the midpoint of each segmented arc.
In this example, you'll add some breaklines that describe road and ditch features:
0402_SurfaceFromBreaklines.dwg
file or the 0402_SurfaceFromBreaklines_METRIC.dwg
file.
This drawing is similar to the drawing used in the first exercise. It contains a surface created with a point group. It also contains 3D survey figures. Without the survey database, you'll have to add the figures conventionally, meaning through the Breakline branch of the surface.
Notice that the TIN lines are not drawn along the figures representing the edge of pavement, centerline of roads, flowline of ditches, and top of banks.
The tooltip will indicate a figure prefix style of TB.
All the brown figures representing the tops of banks are now highlighted.
The Add Breaklines dialog appears.
You can dismiss Panorama if it appears.
As shown in Figure 4.5, by adding the breaklines, you force the TIN lines to align with them, thus cleaning up the contours and making them follow the ridgelines of the road centerline, gutter lines, and shoulders as well as the changes in grade around the small detention area.
When this exercise is complete, you can close the drawing. A completed version of this drawing is available from the book's web page with the filename 0402_SurfaceFromBreaklines_FINISHED.dwg
or 0402_SurfaceFromBreaklines_METRIC_FINISHED.dwg
.
Use boundaries when you want to restrict the area where triangles are being generated. Many object types can be used as surface boundaries, such as survey figures, feature lines, 2D polylines, and 3D polylines. Whatever type of line you choose as your boundary, it must be closed and cannot cross itself (i.e., no “loop-the-loops”). Elevations of the boundaries are ignored. There are four types of surface boundaries:
The addition of every boundary is considered a separate part of the building operations. This means that the order in which the boundaries are applied controls their final appearance. For example, a show boundary listed before a hide boundary created in the same area will be overridden by that hide operation.
One way to start defining more accurate boundaries is to first extract the boundary defining the extents of the surface to a polyline and then edit the polyline to the optimum shape. The Extract Objects From Surface utility allows you to re-create any displayed surface element (contours, border, and the like) as an independent AutoCAD entity. It is important to note that only the objects that are currently visible in the surface style can be extracted. In this exercise, you'll extract the existing surface boundary as a starting point for creating a more refined boundary that will limit triangulation:
0403_SurfaceBoundary.dwg
or 0403_SurfaceBoundary_METRIC.dwg
file.A 3D polyline has been created from the surface border.
This polyline will form the basis for your outer surface boundary. By extracting the border polyline from the existing surface, you save a lot of time playing connect the dots along the points that are valid. Next, you'll add this polyline into the surface as a boundary.
The Add Boundaries dialog opens (Figure 4.7).
Note that this process does not require you to use object snaps. This boundary only needs to be approximate. You will see the surface dynamically update with each grip edit since the surface is set to Rebuild Automatic.
On a large site, you can see that this is a time-consuming process but worth the effort to clean up the site nicely (Figure 4.9). Thankfully, there are other methods you can use to clean up the surface border; we will discuss these methods in later exercises.
Notice in some areas along the outer boundary how the edge of the triangulation includes points shown as a square with a + symbol; these are the additional points created along the boundary line where it intersects with the triangles it crosses. The points you attempted to exclude from the surface are still being included in the calculation of elevations for this point; they are just excluded from the display and calculations. This isn't the result you were after, so let's fix it now.
A listing of the boundaries appears in the preview area of Toolspace.
You can dismiss Panorama if it appears.
The Add Boundaries dialog appears.
Notice that no triangles intersect your boundary now where it does not connect points, as shown in Figure 4.10.
Next, you will add a hide boundary to the surface.
You should now have a void in your surface where the building exists.
You should now see an island of surface data inside the previously hidden location.
When this exercise is complete, you can close the drawing. A finished copy of this drawing is available from the book's web page with the filename 0403_SurfaceBoundary_FINISHED.dwg
or 0403_SurfaceBoundary_METRIC_FINISHED.dwg
.
Many forms of data can be processed by Civil 3D to create a surface. The data types discussed in the following sections are common when working with organizations that are not using Civil 3D.
File types like TIN and LandXML are often best for moving data from other civil design software programs into Civil 3D. DEM files can be used to create surfaces for preliminary drainage analysis.
sdts2dem
. This DOS-based program converts the files from the SDTS format to the DEM format you need. Once you are in possession of a DEM file, creating a surface from it is relatively simple.Oftentimes, the engineering and survey tasks for a land development project are performed by separate companies. If you are tasked with the engineering design and are receiving a DWG file representing the existing site with contours from another firm, you should ask for a LandXML export of the existing surface. It is much more precise than using the contours to build your existing surface. It will also save time as compared with building the surface from scratch with points and breaklines.
_AutoCAD Civil 3D (Imperial) NCS
template. Metric users should use the _AutoCAD Civil 3D (Metric) NCS
template.The Drawing Settings dialog appears.
The Import LandXML dialog appears.
0404_SurfaceFromFile.XML
and click Open to continue.
The Import LandXML dialog changes, as shown in Figure 4.12.
Notice the check boxes. A LandXML file can contain many forms of design data such as alignments, profiles, parcels, points, and pipe networks as well as surfaces. If you receive a file with multiple forms of design data, here in this dialog is where you would uncheck what you do not want to import into the immediate drawing. It isn't possible to uncheck Units, Project Name, or Application Description. These lines are in there for informational purposes only, giving a history of the file: originating units, originating drawing name, originating application. In this example, the originating application was Civil 3D. Sometimes firms make it a policy of not sharing their object data (in this case, the existing surface) when performing file exchanges. This is so they can retain ownership of the model and keep their styles in house. We'll discuss more about styles in Chapter 19.
The LandXML Settings dialog appears.
After the surface imports, Civil 3D will zoom extents.
Notice in the list view that no data is being used in the surface definition. The definition of this surface is coming directly from the LandXML file. As a matter of fact, if this LandXML file were moved or deleted, the surface definition would be lost if it weren't for the automatic creation of a snapshot.
The first item on the list is the Import XML File operation. Notice the Browse button next to the path to the file. This button can be used to redefine the path to the LandXML file if the location must change or the file gets renamed. The next line contains the Create Snapshot operation, which preserves the surface definition in case the XML file is lost. Either line can be deleted from the surface definition. Since a snapshot ignores any previous surface operations, if a new XML file is sent to you containing an updated surface definition, you would need to delete and then re-create the snapshot based on the new definition.
A completed version of this drawing is available from the book's web page (0404_SurfaceFromFile_FINISHED.dwg
or 0404_SurfaceFromFile_METRIC_FINISHED.dwg
).
In the following exercise, you will be creating a surface from a DEM file:
_AutoCAD Civil 3D (Imperial) NCS
template that ships with Civil 3D. Metric users should use the _AutoCAD Civil 3D (Metric) NCS
template.The Drawing Settings dialog appears.
The coordinate system of the DEM file that you will import will be adjusted to the coordinate system of the drawing.
The Create Surface dialog appears. If a coordinate system transformation wasn't necessary, Create Surface From DEM would be a quicker method for creating this surface. However, Create Surface From DEM produces a grid surface, which cannot be adjusted.
This surface is added as Surface1 to the Surfaces collection in Prospector.
The Add DEM File dialog appears.
0405_Camden_NC.DEM
file and click Open.Remember, you can download all data and drawing files for this book from www.sybex.com/go/masteringcivil3d2016
. The DEM file information will populate in the Add DEM File dialog, showing that the DEM file you are using is UTM Zone 18, NAD27 Datum, Meters.
Note that you can find the coordinate system information for this DEM by reviewing the DEM file information section of the Add DEM File dialog.
This information is necessary to properly translate the DEM's coordinate system to the drawing's coordinate system.
The Add DEM File dialog should now match the one shown in Figure 4.16.