Tutorials CivilCraft help Walkthroughs
Terrains from feature lines
Build each part of the proposed surface as its own terrain, a set of feature lines and points triangulated together, with an exterior boundary, interior boundaries and an explorer to manage them.
Written for CivilCraft 0.12. The same help is inside the app: press F1.
A proposed surface is a collection of lines with elevations, triangulated. In CivilCraft each such collection is a terrain: a pond bottom, its side slopes, a parking lot, a pad, a ditch. You draw the feature lines, put them in a terrain, and the terrain is their triangulation. A site has as many terrains as you need, and the ones you tick are laid together into the one proposed surface that the contours, sections, volumes and the 3D view use.
Pads and corridors are still there. A terrain is for everything they cannot describe: grading that ties into a road on one side and a curb on another, a pond with an access ramp, a lot with islands.
Make a terrain
- Draw the feature lines: the edges, the toes and tops of slopes, the flow lines, each with its elevations (see Feature lines).
- Choose Surface › More › Terrains…. The explorer opens beside the plan and the plan stays usable.
- Choose New terrain. With a feature line selected, New terrain from starts one with that line in it.
- Add the lines (below). As soon as the terrain has three points that are not in one line it is triangulated, and its row shows its triangles, plan area and lowest and highest elevation.
The explorer and its menu
Each terrain is a row. Open it to see its exterior boundary, its interior boundaries, its feature lines and its points. Right-click a terrain, or use the three dots at the end of its row, for its menu:
| Menu item | What it does |
|---|---|
| Add the selected feature line | Puts the line selected on the plan into the terrain. |
| Add lines by clicking them | Click one line after another on the plan; EscEsc ends. |
| Draw new lines into it | Starts the Feature line tool. Every line you draw from now on goes straight into this terrain. Choose it again to stop. |
| Add the selected points | Adds the survey points selected on the plan as spot elevations. |
| Selected line as exterior boundary | The terrain ends exactly on that closed line, at the line's elevations. |
| Selected line as interior boundary | No terrain inside that closed line. |
| Move up, Move down | Where two terrains overlap, the one lower in the list lies on top. |
| Zoom to it | Shows the whole terrain on the plan. |
| Terrain template… | Lays a terrain template on this terrain: the shape is the terrain's exterior boundary (kept by the terrain itself, so it follows if the boundary line changes), on the proposed surface. It is added in Properties under Terrain templates, where you change the template. Choosing it again shows the one already there. With no exterior boundary the panel says so. |
| Add by filter… | Opens the Terrain filters panel for this terrain: tick saved filters and add every line that matches (see below). |
| Update from its filters | Adds the lines drawn since that match the filters that fed this terrain, and none twice. One undo step. Off until a filter has fed the terrain. |
| Filters… | The Terrain filters panel: list, new, edit, delete, export and import. |
| Export LandXML (this terrain only) | A LandXML file with this terrain alone: one surface, its lines as breaklines and its boundary. No ground, no points, no other terrain. |
| Cut and fill to (one item for each other terrain) | The cut and fill going from this terrain to that one over the plan area both cover, worked out on a fine grid (fill where the other is higher). The answer is a sentence in the panel. |
| Rename | Type a new name and press ReturnEnter. |
| Empty it | Takes every line, point and boundary out of the terrain. The lines stay in the drawing. |
| Delete the terrain | Removes the terrain. Its lines stay in the drawing. |
Right-click a line inside a terrain (or use its three dots) to select it on the plan, remove it from the terrain, or make it the exterior or an interior boundary. A click on its name selects it on the plan.
While the explorer is open, the terrain you last pointed at is drawn on the plan: its triangles, its edge (dashed while it has no exterior boundary) and its interior boundaries.
A feature line's own Properties also lists the terrains it is in, with Add to a terrain… to put it into one.
Moving and docking the panel
Drag the Terrains header to move the panel; it stays on screen and remembers where you left it. The three buttons in the header dock it to the left edge of the plan, float it, or dock it to the right edge. A docked panel is a side panel: the plan gives up that room, and gets it back when you float or close the panel. With the header focused, the arrow keys move a floating panel and ⌥Alt+arrow left, right or down docks and floats it. The panel never blocks the plan: keys and clicks on the plan work beside it.
Boundaries
- Without an exterior boundary a terrain ends at the outline round its lines and points, which can cut across corners you did not mean to fill. Give it one.
- The exterior boundary is a closed feature line. The terrain's edge is that line, at its elevations, so draw it where the terrain should meet what is beside it and give it the elevations it should have there.
- An interior boundary is a closed feature line inside the terrain. There are no triangles inside it, and in the proposed surface the ground that was there shows through.
- A line that runs past the exterior boundary is cut at the boundary exactly; the part outside is not used.
The proposed surface
The box at the start of a terrain's row puts it into the proposed surface or takes it out. A terrain that is out keeps its own surface and figures.
Inside its exterior boundary a terrain replaces what was there. At the boundary the surface steps from the boundary's elevations to the ground beside it, so draw the boundary where the design meets the ground (a daylight line: see Slope to a surface in Feature lines).
Where terrains overlap, the one lower in the list wins. A terrain lies on top of the pads and corridors it overlaps.
A terrain on its own
A terrain does not need any existing ground, and the merged proposed surface does not have to be what you hand a contractor. Open a terrain in the explorer and use Shown on its own:
- Contours on the plan draws this terrain's own contours at the interval and smoothing the plan uses. The plan's DWG and DXF carry them too.
- In the 3D view draws this terrain's own surface and contours in the 3D view (with the 3D bar's Terrains switch). With no existing ground the terrain is the whole picture.
- Export LandXML (this terrain only) in its menu saves the terrain alone.
- The row shows its triangles, plan area and lowest and highest elevation.
None of this changes the merged proposed surface. Where there is an existing ground the proposed surface is still the ground with the terrains laid into it.
Tags and filters
Give a feature line a Tag in its Properties (free text, for example Pond 1). Then pick lines by rule instead of one by one: Add by filter… in a terrain's menu opens Terrain filters.
- New filter. Fill in what you want: the tag, part of the line's name, a range of elevations, and a place (inside a box you click out on the plan, or inside a closed feature line). A line matches when every condition you fill in holds. Tag and name match any part of the text in any case unless you tick Exactly. Elevation and place use the whole line: every vertex must be inside. Feature lines have no layers, so there is no layer condition.
- Choose the terrain, tick the filters, and press the add button. Each filter shows how many lines match and how many are not yet in the terrain. A line already in the terrain is never added twice.
- The terrain remembers which filters fed it. Later, Update from its filters in its menu adds the lines you have drawn since that match. One undo step for each add or update.
Filters are saved in the project, so they come back when you open the file. Export filters writes a small JSON file you can Import into another project; Save to my library and Add from my library do the same through this browser, without a file. A filter that was only "inside a closed line" does not carry over, because that line belongs to its own project. Deleting a filter takes it off the terrains it fed.
Which feature lines
Any feature line can be in a terrain, and in more than one. The terrain uses the line whatever its Use says. A line that was a breakline of the existing ground is changed to Only drawn when you add it, so it is not in both surfaces; the message says so.
Curves go in as short straight pieces within 0.01 of the true curve. When you trim, extend, break or join a line, the terrain follows at once, and a piece cut off stays in the same terrains.
What is not built
- A terrain's own DXF or mesh surface file (LandXML is the surface export; the plan's DXF carries its contours), and cut and fill between a terrain and the existing ground. Sections and the cut and fill map still use the proposed surface.
- A layer condition in a filter: feature lines have no layers.
- A terrain template always lies on the proposed surface (which needs an existing ground); a terrain's own surface is not used for its quantities yet.
- Points in a terrain by description key or point group. Points are added by selecting them.