Ze Meng
← ZTools

Analyze

zAnalyzeTerrain

Elevation, slope and aspect, contour lines, analysis points

zAnalyzeTerrain analyzes a ground surface or mesh in one window. It colors the ground by Elevation, Slope or Aspect, draws contour lines, and lets you place analysis points to read exact values and compare locations. The result is painted onto your original objects, so nothing is hidden or copied until you press Bake.

Use it to check height differences on a site, find slopes that are too steep, see which slopes face south, produce a contour drawing, lay out a report with a page per metric, or bake the result as real geometry.

Quick start

  1. Run zAnalyzeTerrain. Select the ground surfaces or meshes first, or select them when the command asks. If the objects from your last analysis still exist, press Enter to reuse them. The objects are fixed before the window opens. To analyze different objects, close the window and run the command again.
  2. The window opens with three analysis points already placed: High, Low and Average. The ground is colored right away.
  3. Switch between Elevation, Slope and Aspect with the bar at the top. The colors update in the viewport at once, and the legend appears at the bottom left.
  4. To read more values, click + Add Point at the top of the ANALYSIS POINTS table and click on the model. Click as many points as you like and press Enter to finish.
  5. Adjust the mesh detail and the zero level in the SURFACE tab, the contour, slope or arrow settings in the tab named after the metric, and the label text in the LABELS part of SURFACE.
  6. Press Bake to turn what you see into real geometry. The window stays open, so you can switch the analysis and bake again. Output at the bottom left opens the report window. Close the window with the X.

The window

There are no Setup and Result modes: everything is in one narrow column. From top to bottom:

  • The metric bar: Elevation, Slope, Aspect.
  • The result card: the main number of the current metric in large type (the elevation range, the average slope, or “Aspect”), a line of explanation, the gradient bar with its three numbers, and five icon switches (see Display below).
  • ANALYSIS POINTS: the table of points.
  • Tabs: SURFACE (the surface settings, then a LABELS part) and a tab named after the current metric (ELEVATION, SLOPE or ASPECT).
  • The bottom bar: Output at the left, Bake at the right.

There is no Reset button and no Close button. Right-click the result card or the metric bar and choose Reset to defaults to restore every setting. Close the window with the X.

ANALYSIS POINTS

Each row is one point. From left to right:

  • Color dot: the point’s color in the current analysis (a color on the gradient for Elevation and Slope, a color on the compass ring for Aspect).
  • POINT, ELEV., SLOPE, DIR.: the name, the elevation, the slope, and the downslope direction as an arrow. The arrow points up for north. Flat ground has no arrow.
  • DELETE: removes the point.

+ Add Point at the top of the table: click points on the model, then press Enter. Shift+click removes the nearest point.

The default points

  • High is the highest point of the analyzed surface and Low is the lowest.
  • Average is not a location. It shows the average over the whole surface: elevation and slope are averaged by area, and the aspect is averaged by direction. Its marker sits near the surface’s center for reference.
  • If you delete one of these points, it does not come back.

Renaming, ordering and selecting

  • Rename: double-click the name, or right-click and choose Rename. An empty name restores the automatic one. Points you add yourself are named P4, P5 and so on, by their position in the list.
  • Reorder: right-click a row and choose Move Up or Move Down.
  • Select: click a row. Ctrl+click toggles a row and Shift+click selects a range. Click empty space to clear the selection. Del removes the selected points and Esc clears the selection.
  • Right-click menu: Rename, Move Up, Move Down, Delete, Zoom to Point, Select All, Invert Selection, Clear All (asks first).

Comparing points

Select two or more points. A summary line appears under the table, and the points are joined in the viewport in the order of the list:

  • Two points: High to Low: 104.7' apart, -27.4', 26.2% average slope (horizontal distance, height difference, average slope).
  • Three or more points: High > Low > Average: 826.7' along the path, -15.0' net, 6.3% average slope (horizontal length along the path, net height change from first to last, average slope).

The line in the viewport labels the horizontal length of each leg. To change the order of the path, move the points up or down in the list. The slope unit follows Display As in the Slope tab.

How points look in the viewport

Each point is a small dot on the ground with a thin line rising from it. At the top of the line is a label with the point name on the first line and the value on the second line. The label color is the point’s color in the current analysis, and it has a white frame. Hovering a row or selecting it makes the frame and the line thicker. A small arrow at the point shows the downslope direction (its size is set by Size in the Aspect tab). The labels, lines and arrows are always drawn in front of the surface.

SURFACE tab

  • Detail: a whole number from 1 to 10. The default is 8. It sets how fine the analysis mesh is. Higher is finer and slower.
    • For ordinary curved surfaces, the analysis mesh is a regular grid of four-sided cells, from 16 cells along the long side at level 1 up to 220 at level 10. There are no triangles.
    • For other geometry (trimmed surfaces, meshes) a higher number gives a finer mesh.
    • On a very large site with a very dense mesh (more than 200,000 faces) and Detail above 5, the contour lines are computed from the Detail 5 mesh so they stay fast. Colors and aspect still use the fine mesh.
  • Zero at: the height shown as 0. This only changes the numbers, never the colors or lines. Pick lets you click a point on the model to set it.
  • Format: how elevations, contour labels and distances are written. The list shows only the formats of the active system: ft & in, ft (dec), in (dec), in (frac) in Imperial; mm, cm, m in Metric. Each system remembers its own choice.

The metric tab

The second tab is named after the metric you chose and holds only that metric’s settings. Switching is fast because results are cached.

Elevation

Colors the surface by height.

  • Interval: the height difference between neighboring contour lines, in whole feet (Imperial) or whole meters (Metric).
  • Index: every Nth contour is an index contour, drawn thicker and labeled with its elevation. 0 means none.
  • Contour Lines: draws contour lines on the surface. On by default. Over the colored surface the lines are dark gray. With Map Result off, the lines take the gradient colors and are shown alone.

Slope

Colors the surface by steepness.

  • Display As: degrees, percent or ratio.
  • Flag Above: faces steeper than this value are painted a fixed warning red, and the report shows the share of the area over the limit.
  • Flag Value: the threshold used when Flag Above is set to Custom, in the unit chosen in Display As.
  • The top of the color ramp is the slope that 98% of the area stays below. A very steep face, such as a nearly vertical wall, shares the top color instead of flattening the colors of the rest of the site. When this happens the ramp shows a value like >= 14.1, a note appears on the warning card, and Max in the report is still the true maximum.
  • The report’s Distribution for Slope shows the share of the area in common accessibility bands: 0-5%, 5-8.3% (1:12), 8.3-20% and over 20%. The bands are fixed.

Aspect

Colors each face by the direction it slopes down towards: north blue, east green, south orange and yellow, west magenta, wrapping around. Ground flatter than 1% is gray. The report shows Facing most (the most common direction and its share) and the share of flat area.

  • Density: how many arrows to place along the longer side of the site. The default is 21. A larger number gives more arrows.
  • Size: the length of the downslope arrows, in screen pixels. The default is 38.
  • Arrows on Surface: on by default. Places evenly spread arrows over the surface that point downhill and turn smoothly with the terrain. Flat ground (under 1%) has no arrows.

LABELS (in the SURFACE tab)

  • Label Size: the text size of the labels, in the viewport and in baked text.
  • Precision: the number of decimal places in values.
  • Label Height: how far a point’s label is raised above the point. The default is 100. It applies in the viewport and when baking.

Display (the result card)

  • Gradient bar: double-click to add or remove a color stop, right-click a stop to change its color, and right-click the bar for presets and Flip Gradient. In Aspect the bar shows the fixed compass ring and cannot be edited.
  • Five icon switches under the bar, in this order. Hover one to see its name:
    • Map Result: turn it off to show your original objects normally.
    • Gradient: shows the color bar legend at the bottom left of the viewport.
    • Blur Gradient: smooths the colors inside each cell. Off shows one flat color per cell, so you can read the exact value of each cell. Not available in Aspect.
    • Grid Divisions: draws the edges of the analysis grid over the colors. Only the cell edges are drawn, with no diagonals.
    • North Arrow: shows a north arrow at the bottom right of the viewport. On by default.

Output

Output at the bottom left opens a menu:

  • Report…: opens the report window, which lays out the analysis as 16:9 pages and exports them as PNG.

Report window

The page preview is on the left, with page tabs above it. Click the + tab to add a page (a copy of the current one), drag tabs left or right to change the page order, and right-click a tab for Remove Page (the last page cannot be removed).

PAGE

  • Page type: Elevation, Slope, Aspect or Summary. A metric page shows the colored plan with a compass and the color bar, and beside it the modules you tick. The Summary page shows the three metrics side by side, each with its plan and its first numbers.
  • Width in pixels (16:9): the width of the exported image, 1920, 2560 or 3840. The height follows 16:9. The choice is remembered (2560 the first time).
  • Map Result: where the plan on the page comes from.
    • Floating View: opens a dedicated floating Rhino view. Set its camera, display mode and layers yourself, and the report shows what that view shows, with the metric of the page.
    • Mesh Only: draws only the colored result mesh.

MODULES

Tick the modules to place on a metric page, and drag the handle on the left to change their order.

  • Distribution: one bar per band of the color ramp, its length the share of the area.
  • Numbers: a table of numbers (for example Max, Min, Range, Average and the number of cells for Elevation; the share over the Flag over limit for Slope; the most common facing for Aspect).
  • Contour Lines (Elevation page only): draws the contour lines on the plan.

Buttons

  • Export PNG: exports the pages. With one page a save dialog opens; with several pages you choose a folder.
  • Copy: copies the current page to the clipboard.
  • Refresh: reads the latest results from the window again.
  • Close: closes the report window.

What Bake creates

Bake creates real geometry from what is currently shown, on a sublayer zAnalyzeTerrain::Elevation, zAnalyzeTerrain::Slope or zAnalyzeTerrain::Aspect. Each bake is grouped automatically.

  • Elevation: a colored mesh if Map Result is on, and contour curves with elevation text on the primary contours if Contour Lines is on. After baking, the primary contours stay thick in every display mode.
  • Slope: a colored mesh.
  • Aspect: a colored mesh, plus one curve per arrow if Arrows on Surface is on.
  • Analysis points are baked too, as points, leader lines and text in the form Name value.

The window stays open after baking, so you can switch to another analysis and bake again.

Good to know

  • Selected objects are not painted, because Rhino’s selection highlight covers the colors. The window deselects your objects when it opens.
  • If you delete an analyzed object, its colors disappear.
  • Running the command again does not open a second window. It brings the existing one to the front.
  • A point’s values are always its own real readings. Switching between Elevation, Slope and Aspect only changes which value is shown in the viewport label.
  • Esc does not close the window. Use the X.
  • The window sizes itself and cannot be resized.
  • On a big site with many objects, a high Detail is noticeably slower, and so is a very small contour Interval. Start with a lower Detail and a larger Interval to see the whole picture, then refine.
  • If the selected surface is perfectly flat, there is no meaningful color range.