Chapter 8

The ground

Gardens are rarely flat. Our plot rises 1.2 m from the house to the back fence, and the shed, the patio and the lawn each need level ground. In this chapter you build the terrain from survey contours, grade level pads into it, and read the cut and fill numbers.

Terrain from contours

A survey of a garden usually comes as contour lines: lines that join points of equal height. Terrafold stretches a surface over them.

  1. Select all the contour lines.
  2. Choose Draw ▸ Sandbox ▸ From Contours.
  3. Hide the Contours tag: the lines are no longer needed, but keep them.
The contour lines at their heights: flat by the house, a short steep bank, then a gentle rise to the back.
Figure 8.1 The contour lines at their heights: flat by the house, a short steep bank, then a gentle rise to the back.
The terrain from the contours. View ▸ Hidden Geometry shows its triangles; the terrain is painted Soil.
Figure 8.2 The terrain from the contours. View ▸ Hidden Geometry shows its triangles; the terrain is painted Soil.

The terrain is a group of triangles. Paint it (Soil from the library), and it will show through wherever you don't lay something on top.

The other way to start is Draw ▸ Sandbox ▸ From Scratch: a flat grid of a given size and spacing, which you then shape with the brushes (below). Use it when there is no survey, or for a quick sketch.

Why terrain is a TIN

Terrafold's terrain is a TIN, a triangulated irregular network: points at their real heights, joined by flat triangles. It is not a grid of heights, and it is not a smooth surface.

A TIN: vertices at the surveyed heights, flat triangles between them. A garden area laid on it is cut along the triangles and follows them exactly.
Figure 8.3 A TIN: vertices at the surveyed heights, flat triangles between them. A garden area laid on it is cut along the triangles and follows them exactly.

Grade a level pad

Tools ▸ Garden ▸ Grade Terrain makes a pad: a flat or evenly sloped area, with the ground around it sloping back to the existing level at a batter.

The shed needs a level base, 30 cm larger than the shed on every side.

  1. Choose Tools ▸ Garden ▸ Grade Terrain. Before clicking, type 1:2 and press Enter: the batter, 1 up for 2 across.
  2. Click the four corners of the pad around the shed's position, and close the outline by clicking the first point again (or press Enter).
  3. Move up or down to set the pad's height and click, or type how much to raise it (0.1m, or -0.1m to lower it) and press Enter. In the project files the pad is level at 1.05 m above the patio.

Do the same for the patio by the house: a pad 6.8 m by 4 m, level at 0.

The terrain after grading two pads: the shed's pad at the back right, the patio's by the house. Hidden geometry shows the triangles added along the pads' edges.
Figure 8.4 The terrain after grading two pads: the shed's pad at the back right, the patio's by the house. Hidden geometry shows the triangles added along the pads' edges.

To slope a pad, type a height and a gradient: 0.3m,2% raises it 30 cm and slopes it 2 % along its first edge, for drainage.

Cut and fill

Every grading records how much soil is dug out (cut) and how much is brought in (fill). Terrafold computes them from the terrain before and after, triangle by triangle.

A pad on a slope: fill on the low side, cut on the high side, and batters back to the existing ground.
Figure 8.5 A pad on a slope: fill on the low side, cut on the high side, and batters back to the existing ground.
Table 8.1 The two pads of the project
PadAreaCutFill
Shed, level at 1.05 m7.2 m²0.13 m³0.25 m³
Patio, level at 0 m27.2 m²0.99 m³0.02 m³

Each grading is stored with the terrain, and the quantity report adds them up over the whole project (next chapter).

Put the buildings on the ground

The shed and the fence were drawn at height 0, before there was any terrain. Now lift them:

  1. Select the shed, start Move (M), click a corner, press Up to lock the blue axis, type 1.05 and press Enter.
  2. Select the six fence panels and move them up 1.12 m, so the posts stand just into the ground at the back.
The project after chapter 8: terrain, the two pads, the shed on its pad and the fence on the ground.
Figure 8.6 The project after chapter 8: terrain, the two pads, the shed on its pad and the fence on the ground.

Select the terrain and the green Terrain tools context tab appears with the Sandbox tools and grading.

The Terrain tools context tab, shown while the terrain is selected.
Figure 8.7 The Terrain tools context tab, shown while the terrain is selected.

Sculpt by hand

The brushes in Tools ▸ Garden ▸ Sculpt paint changes onto the ground: press and drag over the terrain, and the stroke is one step of Undo. Type radius,strength to change the brush.

  • Raise / Lower builds mounds or hollows (a negative strength lowers).
  • Level flattens to the height under the first point, or one you type.
  • Smooth evens out bumps.
  • Relief and Relief in Area add natural unevenness.
Sculpting a grid terrain: a flat grid (from scratch), a mound with Raise, relief and smoothing, and a levelled strip on the right.
Figure 8.8 Sculpting a grid terrain: a flat grid (from scratch), a mound with Raise, relief and smoothing, and a levelled strip on the right.

Where the triangles are too coarse for the brush, Terrafold refines them first. Every stroke also records its cut and fill.