164
TerraModeler User's Guide Terrasolid Ltd

Terramodeler User Guide

Embed Size (px)

Citation preview

Page 1: Terramodeler User Guide

TerraModeler User's Guide

Terrasolid Ltd

Page 2: Terramodeler User Guide

Page 2

Trademarks

MicroStation®, MDL® and MicroStation stylized "M" are registered trademarks, and MicroStation PowerDraft is a trademark of Bentley Systems, Incorporated.

TerraBore, TerraLink, TerraMatch, TerraModeler, TerraPark, TerraPhoto, TerraPipe, TerraScan, TerraStreet and TerraSurvey are trademarks of Terrasolid Limited.

Windows is a trademark of Microsoft Corporation.

Acrobat Reader is a trademark of Adobe Systems Incorporated.

Intergraph Raster File Formats - Copyright - 1994 Intergraph Corporation. Used with permission.

Copyright

© 1995-2003 Arttu Soininen, Terrasolid Limited. All rights reserved.

Acknowledgements

The picture on the cover was created from a design file provided as a courtesy of Soil and Water Ltd, Itälahdenkatu 2, 00210 Helsinki, Finland. The design file was created from an aerial photograph using TerraSurvey and TerraModeler.

Page 3: Terramodeler User Guide

Page 3

Table of Contents

Part I: Getting Started1 Introduction .................................................................................................... 9

Terra application family................................................................................ 10

2 Installation .................................................................................................... 11

Hardware and software requirements ........................................................... 11

Installation media.......................................................................................... 11

Installation from floppy ................................................................................ 12

Installation from CD ..................................................................................... 13

3 Starting TerraModeler ................................................................................ 14

Unloading TerraModeler .............................................................................. 15

Part II: Tutorial4 Tutorial.......................................................................................................... 17

TerraModeler interface ....................................................................... 17Opening an example design file ......................................................... 18Starting TerraModeler ........................................................................ 18Creating a surface model .................................................................... 19Viewing surface statistics ................................................................... 20Viewing triangulation ......................................................................... 21Placing elements on surface elevation................................................ 21Calculating slopes............................................................................... 22Creating a design surface.................................................................... 24Computing excavation quantities ....................................................... 25Displaying a colored grid ................................................................... 27Drawing a profile................................................................................ 29

Part III: Reference Guide5 General Tools................................................................................................ 31

General tool box............................................................................................ 31Settings ............................................................................................... 32Define Coordinate Setup .................................................................... 38Set Scale ............................................................................................. 39Surfaces .............................................................................................. 39Save Surfaces...................................................................................... 40About TerraModeler ........................................................................... 40Help On TerraModeler ....................................................................... 40

6 Creating Surface Models ............................................................................. 41

Create Surfaces tool box ............................................................................... 41Triangulate Survey ............................................................................. 42Triangulate View ................................................................................ 43Triangulate Elements .......................................................................... 44

Page 4: Terramodeler User Guide

Page 4

Insert Random Elements..................................................................... 46Insert Breakline Elements................................................................... 47

7 Placing Elements Using a Surface Model................................................... 48

Draw tool box ............................................................................................... 48View Elevation ................................................................................... 49Compare Elevations............................................................................ 50View Slope ......................................................................................... 50Measure Slope .................................................................................... 51Place Sloped Line ............................................................................... 51Set Linear Elevation ........................................................................... 52Copy Linear Element.......................................................................... 52Alignment Offset ................................................................................ 54Drop Element On Surface................................................................... 55Calculate Slope ................................................................................... 56Fill Area With Cells............................................................................ 57

8 Editing Surface Models................................................................................ 59

Edit Point tool box ........................................................................................ 59Construct Breakline ............................................................................ 60Insert Point Along Breakline .............................................................. 61Insert Point.......................................................................................... 62Move Point ......................................................................................... 63Remove Point ..................................................................................... 64Exclude Triangle................................................................................. 64

Edit Area tool box......................................................................................... 65Flatten Area ........................................................................................ 66Move Area .......................................................................................... 67Drop Area ........................................................................................... 68Exclude Area ...................................................................................... 69Insert Hole Element ............................................................................ 70Remove Area ...................................................................................... 71

9 Drawing Profiles........................................................................................... 72

Profiles tool box............................................................................................ 72Draw Section View............................................................................. 73Draw Profile ....................................................................................... 74Draw Alignment Sections................................................................... 76Update Profile..................................................................................... 78Project Into Profile.............................................................................. 79Project From Profile ........................................................................... 80Label Profile Elevations ..................................................................... 81Output Profile Elevations ................................................................... 82Output Section Elevations .................................................................. 84

10 Generating Displays ................................................................................... 86

Display Surface tool box............................................................................... 86Display Contours ................................................................................ 88Display Triangles................................................................................ 92Display Grid ....................................................................................... 94Display Elevation Texts...................................................................... 95Display Slopes .................................................................................... 96Update Displays.................................................................................. 99Erase Display ...................................................................................... 99

Page 5: Terramodeler User Guide

Page 5

Display Boundary ............................................................................. 100

Display Regions tool box............................................................................ 101Display Themes ................................................................................ 102Display Drainage .............................................................................. 103Display Region Triangles ................................................................. 105Display Raster Triangles .................................................................. 106

11 Computing Quantities.............................................................................. 108

Quantity tool box ........................................................................................ 108Compute Quantity............................................................................. 109Compute Prismoidal Quantity .......................................................... 110Compute Alignment Quantity .......................................................... 111Define Section Templates................................................................. 112Compute Section Quantity................................................................ 113Compute Tunnel Volume ................................................................. 114Draw Surface Intersection ................................................................ 115Compute Area................................................................................... 116

12 Using Domains .......................................................................................... 117

Domains tool box........................................................................................ 117Define Domains ................................................................................ 118Domain View.................................................................................... 119Set Area Domain .............................................................................. 120Set Domain Between Lines .............................................................. 121Set Triangle Domain......................................................................... 122Display Domain Triangles................................................................ 123

13 Placing Single Display Elements ............................................................. 124

Display Single tool box............................................................................... 124Place Contour ................................................................................... 125Place Elevation Text ......................................................................... 126Place Slope Arrow ............................................................................ 127

14 Managing Surfaces................................................................................... 128Opening a surface file....................................................................... 128Saving surfaces ................................................................................. 128Opening a reference surface ............................................................. 129Modifying surface settings ............................................................... 129Modifying profile settings ................................................................ 129Excluding outer boundaries .............................................................. 130Modifying surface elevations ........................................................... 130Thinning a surface ............................................................................ 131Compressing a surface...................................................................... 131Deleting a surface ............................................................................. 132Viewing surface statistics ................................................................. 132Copying surfaces .............................................................................. 132Merging surfaces .............................................................................. 133Subtracting surfaces.......................................................................... 133Creating a statistical grid model ....................................................... 134

15 Importing and Exporting Data ............................................................... 135Importing triangles ........................................................................... 135Importing XYZ text file points ......................................................... 135Exporting text files ........................................................................... 136

Page 6: Terramodeler User Guide

Page 6

Exporting graphical elements ........................................................... 136Importing lattice files........................................................................ 137Exporting raster images .................................................................... 137

16 Lattice Database ....................................................................................... 138Drawing lattice database boundaries ................................................ 138Viewing lattice database elevation ................................................... 138Triangulating lattice database points ................................................ 139

17 Flood Mapping ......................................................................................... 140

Flood Mapping tool box.............................................................................. 140Import River Sections ....................................................................... 141Edit River Sections ........................................................................... 143Export River Sections ....................................................................... 143Input Water Elevations ..................................................................... 144Draw River Section Boundaries ....................................................... 144Display Flood ................................................................................... 145

18 Lifting 2D Contours ................................................................................. 146

2D Contours tool box.................................................................................. 146Lift 2D Contours............................................................................... 147Set Contour Elevation....................................................................... 148Check Linear Elevations................................................................... 149

19 Public Functions ....................................................................................... 150

20 Installation Directories ............................................................................ 163

21 Configuration Variables .......................................................................... 164

Page 7: Terramodeler User Guide

Page 7

About the documentationThis document serves as a user's guide for two versions of TerraModeler. The entry-level version, TerraModeler Field, is functionally a subset of the full version which is called TerraModeler for MicroStation. All of the tools in TerraModeler Field are available in the full version as well and work identically in the two versions. The full MicroStation version provides some additional tools which are not available in the entry-level version. In this documentation, those features are marked as 'MicroStation only'.

This User's Guide is divided into three parts:

• Getting Started - contains general information about TerraModeler and instructions on how to install and run the application.

• Tutorial - contains lessons introducing the basic concepts and the most common tools in the application.

• Reference Guide - contains detailed descriptions of all the tools in TerraModeler.

Accessing documentation on-line

The documentation is accessible as an Acrobat Reader document which serves the role of on-line help. Accessing the electronic format of the documentation has the following unique advantages:

• You can conduct automated searches for keywords in topic names or body text.• You can click hypertext to "jump" to related topics.

Document conventions

The following conventions and symbols appear in this guide:

• Keyboard keys angle brackets - for example, <Return>.• Alternate procedures are separated by "OR". Alternate steps in a procedure are separated by

"or".• "Key in" means to type a character string and then press <Return> (or <Tab> in dialog boxes).• The following icons are used to specify special information:

• When no distinction between MicroStation 95, MicroStation SE, MicroStation J, MicroStation GeoOutlook and MicroStation PowerDraft is necessary, this document refers to the CAD environment simply as "MicroStation".

• Features which are available only in TerraModeler for MicroStation and can not be used with TerraModeler Field are labeled as Not Field.

• When no distinction between TerraModeler for MicroStation and TerraModeler Field is necessary, this document refers to the application as "TerraModeler" or as "the application".

MicroStation documentation

This document has been written assuming that the reader knows how to use basic MicroStation features. You should refer to MicroStation printed documentation or on-line help whenever you need information on using the CAD environment.

Icon: Appears next to:Notes

Hints and shortcutsProcedures

Page 8: Terramodeler User Guide

Part I: Getting Started

Page 9: Terramodeler User Guide

Page 91 Introduction

1 IntroductionTerraModeler is a terrain modeling application built on top of MicroStation. You can create triangulated models of ground, soil layers or design surfaces. Models can be created based on survey data, graphical elements or XYZ text files.

TerraModeler can handle an unlimited number of different surfaces in the same design file. You can edit any of these surface models interactively. You can add, move or delete individual points. You can move, drop or flatten all the points inside a fence. You can construct breaklines and add new elements to the models.

You can use a surface model as a design aid. You can place elements on the elevation of the surface model or you can drop existing elements to follow the surface.

Profile generation includes separate tools for drawing 3D section views, profiles and alignment cross sections. You can project 3D elements into a profile or project elements drawn in a profile back to their true 3D positions.

Surface model visualization can be done by generating contour, colored triangle and colored grid displays. All of these visualisation displays can be updated after you have made modifications to a surface model.

Compute Quantity tool calculates the volume between two surfaces. You can limit this computation to take place only inside a fence.

Page 10: Terramodeler User Guide

Page 101 Introduction

Terra application familyTerraModeler is just one in a full family of civil engineering applications. All of Terra applications are tightly integrated with MicroStation presenting an easy-to-use graphical interface to the user.

TerraBore is a solution for reading in, editing, storing and displaying bore hole data. You can triangulate soil layers with the help of TerraModeler.

TerraPark is an easy-to-use package for park design and landscaping. It has all the necessary tools for designing roads, regions, plants and utilities inside the park.

TerraPhoto rectifies digital photographs taken during laser scanning survey flights and produces orthorectified images.

TerraPipe is used for designing underground pipes. It gives you powerful tools for designing networks of drainage, sewer, potable water or irrigation pipes.

TerraScan processes laser scanning data. It reads in laser points from text files and lets you view the points three dimensionally, classify the points and create vectores based on the points.

TerraStreet is an application for street design. It includes all the terrain modeling capabilities of TerraModeler. Street design process starts with the creation of horizontal and vertical geometries for street alignments.

TerraSurvey reads in survey data and creates a three dimensional survey drawing. The application recognizes a number of survey data formats automatically.

All of these applications are available for MicroStation SE, J or V8 under Windows NT4.0, Windows 2000 or Windows XP for Intel. Some of the applications are available for MicroStation PowerDraft.

Page 11: Terramodeler User Guide

Page 112 Installation

2 Installation

Hardware and software requirementsTerraModeler is built on top of MicroStation. You must have a computer system capable of running this CAD environment.

To run TerraModeler, you should at least the following:

• Pentium or higher processor• Windows NT 4.0, 2000 or XP• mouse• 1024*768 resolution display or better• 128 MB RAM• MicroStation SE, MicroStation J, MicroStation V8, MicroStation GeoOutlook or

MicroStation PowerDraft installed

Installation of TerraModeler requires about 5 MB of free hard disk space.

Installation mediaTerraModeler may be delivered on a single floppy or on a CD.

The floppy is big enough only to contain the actual software and the example data sets — it does not include the on-line Acrobat manual.

Terra Installation CD includes the software, example data and the on-line documentation. When you install from the CD, the software and the documentation will be copied to you hard disk.

Installation CD includes versions for multiple environments. You should locate the directory which corresponds to your operating system:

Installation directories on CD

Directory on CD For operating system For MicroStation\alphant\eng\ Windows NT for Alpha SE or J\windows\eng\ Windows 95, 98 or NT for Intel 95, SE, J, GeoOutlook or

PowerDraft

Page 12: Terramodeler User Guide

Page 122 Installation

Installation from floppyTo install TerraModeler from floppy:

1. Insert TerraModeler floppy in your local drive (usually drive A:).2. Select Run command Start menu.3. Type

a:\setup (if floppy is in A: drive)

4. Click OK.

The installation program will need to know where MicroStation has been installed. It will automatically search all local hard disks to find the MicroStation directory.

The installation dialog box opens:

5. The installation program prompts you to enter the directory where to install TerraSurvey. The default path is C:\TERRA. You can set this to another location if you prefer. The specified directory will be automatically created, if it does not exist.

6. At this stage you should check the directory where MicroStation was found. Replace the path if the correct location was not found.

7. Press <Return> to continue.

When the installation is finished, a message is displayed and you are prompted to press any key to continue.

See chapters Installation Directories on page 163 and Configuration Variables on page 164 for more information.

Page 13: Terramodeler User Guide

Page 132 Installation

Installation from CDTo install TerraModeler from CD:

1. Insert TerraModeler CD into your CD-ROM drive.2. Locate the correct directory which corresponds to your computer configuration.3. Start SETUP.EXE from that directory.

The installation program will try to determine where MicroStation has been installed and will then open the Terra Setup dialog box:

4. The installation program prompts you to enter the directory where to install the applications. The default path is C:\TERRA. You can set this to another location if you prefer. The specified directory will be automatically created, if it does not exist.

5. Check the directory where MicroStation was found. Replace the path if the correct location was not found.

Alternatively, you can use the Scan button to automatically search the hard disk for MicroStation installation or you can use the Browse button to locate the MicroStation executable yourself.

6. Check the MicroStation version information in the Version field. Select the correct version if it was not detected correctly.

The installation program will want to know what application to install. The Terra Setup dialog opens:

7. Check TerraModeler for MicroStation item in the dialog. You may select other applications as well for which you have a valid license.

8. Click OK.

A message is displayed when the installation is finished.

See chapters Installation Directories on page 163 and Configuration Variables on page 164 for more information.

Page 14: Terramodeler User Guide

Page 143 Starting TerraModeler

3 Starting TerraModelerTerraModeler is an MDL application that runs within MicroStation.

To start TerraModeler:

1. From the Utilities menu, choose MDL Applications.

The MDL window opens:

2. In the Available Applications list box, select TMODEL.3. Click the Load button.

OR

1. Key in MDL LOAD TMODEL.

User settings determine what menus and tool boxes the application will open during startup. In addition to its Main tool box, TerraModeler may create an Applications menu in the command window.

Available Applications list box shows all MDL applications that MicroStation is able to locate. MicroStation searches for MDL applications in the directories listed in MS_MDLAPPS configuration variable. If MicroStation can not find TMODEL.MA, you should check the value assigned to this configuration variable. Make sure the directory path of TMODEL.MA file is included in this variable. To view configuration variables, choose Configuration command from the Workspace menu. See chapters Installation Directories on page 163 and Configuration Variables on page 164 for more information.

Page 15: Terramodeler User Guide

Page 153 Starting TerraModeler

Unloading TerraModelerTerraModeler will unload automatically when you exit MicroStation. Sometimes you may want to unload TerraModeler while continuing to work with MicroStation. This will free up memory reserved by TerraModeler.

To unload TerraModeler:

1. From the Utilities menu, choose MDL Applications.

The MDL window opens:

2. In the Loaded Applications list box, select TMODEL.3. Click the Unload button.

OR

1. Key in MDL UNLOAD TMODEL.

OR

1. Close TerraModeler's Main tool box.

This will unload the application, if the corresponding user setting is on. See Operation category on page 36 for more information.

Page 16: Terramodeler User Guide

Part II: Tutorial

Page 17: Terramodeler User Guide

Page 174 Tutorial

4 TutorialThis tutorial will help you learn the basic tools in TerraModeler. It will introduce some concepts and terminology used by the application. With the help of an example design file, you will be guided through a number of exercises using some of the features in TerraModeler.

This tutorial assumes that you are already familiar with MicroStation and know how to manipulate view windows, how to use drawing tools and how to open design files.

TerraModeler interface

The user interface of TerraModeler is very similar to that of MicroStation. When you load TerraModeler, it will open its Main tool box. All of TerraModeler's tools are located in this tool box, which is actually a parent of ten children tool boxes. These child tool boxes contain icons representing individual tools. To activate a tool, click the tool icon.

You can control the operation of a tool with tool settings. These are control fields affecting the operation of that specific tool. Most of the tools will display their settings in a Tool settings window which is shared by MicroStation and MDL applications. The Tool settings window will display the controls for the active tool. Some of the tools will open a separate window or a dialog box where you can enter the appropriate settings.

Page 18: Terramodeler User Guide

Page 184 Tutorial

Opening an example design file

This tutorial will use an example design file that was installed with TerraModeler.

This example file has been supplied as a courtesy of Soil and Water Ltd, a company with expertise in many fields of civil engineering. The design file was created from an aerial photograph using TerraSurvey.

To open the example design file:

1. From MicroStation's File menu, choose Open.

The Open Design File dialog box opens.

2. Locate MODEL.DGN design file by browsing your computer's directory structure. If you installed TerraModeler in the default directory C:\TERRA, you can find this design in path C:\TERRA\EXAMPLE\MODEL.DGN. When you have located this file, select it in the Files list box.

Alternatively, you can type in the full path of the example file in the Files text control.

3. Click OK.

After opening the design file, you can take a closer look at it. View 1 has been fitted to show all the elements in the design. You can rotate this view or zoom in to see smaller details.

Starting TerraModeler

To start TerraModeler, go through the steps described in chapter Starting TerraModeler on page 14.

Page 19: Terramodeler User Guide

Page 194 Tutorial

Creating a surface model

TerraModeler can create a surface model from a number of data sources. The best tool to use depends on the source and format of data. Normally, you will be using one of these tools:

To create a surface model in the example design file:

1. Bring window 2 to the top by choosing Window 2-Top from MicroStation's Window menu.

This window displays only selected levels in the design file. Elements that do not reside on the ground elevation have been hidden by switching of their levels.

2. Select Triangulate View tool from Create Surfaces tool box.3. Identify view 2.

The Triangulate surface dialog box opens:

4. Click OK.

The Surface settings dialog box opens:

5. Type Ground as the surface name.6. Click OK.

TerraModeler processes the information for a while. You will see an indicator bar displaying the progress of this operation.

Data source: Use tool:Survey data Triangulate Survey after reading in the survey data with

TerraSurvey. Design file elements Triangulate View or Triangulate Elements.XYZ text file Surfaces tool opens a window for managing surfaces. The File

pulldown menu in this window has a command for importing xyz text files.

Page 20: Terramodeler User Guide

Page 204 Tutorial

Viewing surface statistics

You have now created your first terrain model with TerraModeler. This model exists now in two types of memory. It has been saved to a binary file for permanent storage. When you work with TerraModeler, the terrain model is also loaded in your computer's RAM memory.

TerraModeler is able to handle an unlimited number of surface models in the same design file session. You can use the Surfaces tool to view information about the available surfaces.

To view surface statistics:

1. Select Surfaces tool from General tool box.

The Surfaces window opens showing a list of available surfaces. Select Ground, if it is not selected already.

2. Choose View statistics from Utility menu.

The Surface statistics dialog box opens:

3. Click OK after reviewing the statistics.

Page 21: Terramodeler User Guide

Page 214 Tutorial

Viewing triangulation

TerraModeler creates surface models by triangulation. This means that the application will create a network of triangles connecting the points in the model. The network is constructed in such a manner that there is one triangle under every XY location inside the surface area. In a terrain model every XY location has one and only one elevation value.

To view triangulation:

1. Zoom in on a position in view 2 inside the surveyed area.2. Select Exclude Triangle tool from Edit Point tool box.

This tool can be used to excluding or including triangles. In TerraModeler's terminology, to exclude a triangle means to mark it as invalid or unknown.

This tool can also be used just to view triangulation.

3. Move the mouse inside view 2. As you move the mouse, TerraModeler will display the triangle under the mouse position.

Placing elements on surface elevation

A surface model can be used as a design aid. TerraModeler makes it easy to place elements on the elevation of a surface. You might use this feature to place items such as manholes, trees or shrubs on the ground elevation.

To place elements on surface elevation:

1. Select the View Elevation tool from Draw tool box.

The View elevation window opens. As you move the mouse, this window will display the surface elevation under your mouse position.

2. Set Points on surface lock on.3. Start the drawing primitive you want to use. Feel free to experiment with this tool. Use it

while drawing some lines or placing a few cells.

When Points on surface lock is on, TerraModeler will calculate the elevation for all data points entered in a top view window inside the surface area.

Be sure to turn this lock off after using it.

Page 22: Terramodeler User Guide

Page 224 Tutorial

Calculating slopes

When designing construction surfaces, you will often need to create a slope onto an existing surface. Calculate Slope tool will help you accomplish this. As a first step, you have to create a graphical element representing the upper or lower edge of a slope. The example design file has a suitable element for this purpose. It is a green shape element that represents the bottom of a flat rectangular excavation at elevation +29.50.

To locate the shape element:

1. Bring window 4 to the top by choosing Window 4-Top from MicroStation's Window menu.

This window displays only the green shape element on level 56.

To calculate a slope upwards to the ground surface:

1. Select yellow as the active color.2. Select the Calculate Slope tool.

This opens Slope settings window:

3. Enter 20 as the slope Angle.4. Select Ground as the Onto surface.5. Identify the green shape element as the element to start from.6. Enter slope direction with a data click outside the shape element. This means that the slope

will be calculated outwards from the element.

Page 23: Terramodeler User Guide

Page 234 Tutorial

The application calculates a slope upwards from the element at an angle of 20 degrees. It draws the upper edge of the slope as a yellow line string.

Page 24: Terramodeler User Guide

Page 244 Tutorial

Creating a design surface

TerraModeler makes it possible to create design surfaces for earthworks projects. The best approach is to first create graphical elements representing the shape of the surface. This is exactly what you did earlier with the Calculate Slope tool. You now have graphical elements from which to create the design surface.

You will create a new surface model using the green shape element and the yellow slope element.

To create a design surface:

1. Select all elements in view 4. The easiest way to do this is to select the Element Selection tool and drag around a rectangular area containing all of the elements.

Your selection set should now include the green shape element and the yellow line string of the slope.

2. Select the Insert Breakline Elements tool from the Create Surfaces tool box.3. Select New surface as the Surface to insert points into.4. Set Generate points along breakline toggle on.5. Enter 10.0 into the Every field. This setting will generate new points along a long breakline,

if the distance between two breakline points is greater than 10 meters. 6. Accept the element(s).

This opens the Triangulate surface dialog box. Accept default settings by choosing OK which in turn opens the Surface settings dialog.

7. Select Plan in the Type field.8. Enter Plan as the surface Name.9. Click OK.

TerraModeler creates a new surface using the vertices of the selected elements.

Page 25: Terramodeler User Guide

Page 254 Tutorial

Computing excavation quantities

You now have two surface models. The first one, Ground, is based on survey information. The second one, Plan, is a design model of an excavation with slopes onto the ground surface. You are now ready to compute excavation quantities using the Compute Quantity tool. It computes the volume between two surfaces and produces results summing up both cut and fill volumes. The calculation is based on a grid method.

To compute excavation quantities:

1. Select the Compute Quantity tool from Quantity tool box..

The Compute Quantity window opens.

2. Select Ground as the Upper surface.3. Select Plan as the Lower surface.4. Enter 1.0 as the Step value.5. Make sure Draw temporarily is selected as the Display option.6. Click on Calculate push button to start computation.

The application starts calculating the volume between the two surfaces. It displays the progress of the calculation as temporary line elements. The color of each line indicates if that grid position resulted in cut or fill volume.

When the calculation is finished, take a moment to check the results. TerraModeler reports 7951 cubic meters of cut volume and 1.8 cubic meters of fill volume. The cut volume is a true, correct value. The fill volume, however, is something you may want to take a closer look at.

When TerraModeler creates a surface model, the triangulated area will be a concave polygon which encloses all the points in the model. To control the actual area that should be covered by the model, you can exclude some of unnecessary triangles on the outer boundaries.

Page 26: Terramodeler User Guide

Page 264 Tutorial

When you create a surface with Triangulate Survey, Triangulate View or Triangulate Elements tool, the application will automatically exclude narrow, long triangles from the outer boundaries. When using the Insert Random Elements or Insert Breakline Elements tools, the application will not do automatic exclusion of triangles.

In our excavation example, you may decide simply to ignore the fill volume reported by the Compute Quantity tool as you know for sure that the fill volume should be zero. Alternatively, you may decide to go in and exclude the extra triangles in the Plan surface model.

To exclude triangles from the excavation automatically:

1. Select Surfaces tool from General tool box.

The Surfaces window opens showing a list of available surfaces. Select Plan, if it is not selected already.

2. Choose Exclude boundaries from Edit menu.

The Exclude Boundaries dialog box opens.

3. Enter 12.0 as the Maximum length for outer boundary triangles.4. Click OK.

To exclude triangles manually:

1. Select Exclude Triangle tool from Edit Point tool box.2. Select Plan as the active surface in the Tool Settings window.3. Enter a data click inside each of the triangles to exclude.

After excluding the extra triangles, you may recalculate the excavation quantities as described above.

Page 27: Terramodeler User Guide

Page 274 Tutorial

Displaying a colored grid

A surface model is often used for visualization purposes. TerraModeler is able to display two presentations for this purpose: colored triangles or a colored grid.

To display a colored grid:

1. Select the Display Grid tool.

The Display grid dialog box opens:

2. Select Ground in the Surface field.3. Select Display only in the Mode field.4. Enter 10.0 in the Grid size field.5. Click Colors push button to define a coloring scheme.

The Coloring scheme dialog box opens:

6. Choose Open from the File menu to load a coloring scheme from a file. Locate and open MODEL.CLR file. If you installed TerraModeler in the default directory C:\TERRA, you can find this file in path C:\TERRA\EXAMPLE\MODEL.CLR.

7. Click OK to close the Coloring scheme dialog.8. Click OK to close the Display grid dialog.

TerraModeler draws a colored grid. To view the grid, use view controls to change the rotation angle and to zoom in or out on the grid.

Page 28: Terramodeler User Guide

Page 284 Tutorial

Make sure the level used in displaying the grid is switched on in your view. The default level is 51.

The grid was drawn in Display only mode. This means that TerraModeler did not write the grid to the design file. The grid will be erased when you unload TerraModeler or exit MicroStation. Alternatively, you can erase the grid with the Erase Display tool.

Page 29: Terramodeler User Guide

Page 294 Tutorial

Drawing a profile

You can create a profile along any linear element. The profile will show the shape of surface models along the alignment element. A profile is drawn as a cell element that can be freely positioned anywhere in the design file.

To create an alignment element:

1. Select the Place Line String tool from MicroStation's Lines tool box.2. Place a line string element that runs across or inside the ground surface model. To do this,

enter two or more data points to define the vertices of the linear element.3. Reset to complete the placement operation.

To draw a profile:

1. Select the Draw Profile tool.2. Identify the alignment element you just created.3. Accept the highlighted element.

The Draw profile dialog box opens.

4. Fill in settings values in the dialog.5. Enter a data point to position the profile cell. It is a good idea to position the profile outside

the surveyed site so it will not overlap any existing elements.

Page 30: Terramodeler User Guide

Part III: Reference Guide

Page 31: Terramodeler User Guide

5 General Tools

General tool boxThe tools in the General tool box are used to define user settings, to set intended plotting scale, to manage surfaces, to save surface models and to access on-line help.

To: Use:

Change user settings Settings

Define coordinate range and resolution Define Coordinate Setup

Set intended plotting scale / rescale elements Set Scale

Control, rename, import or export surfaces Surfaces

Save all modified surface models Save Surfaces

View information about TerraModeler About TerraModeler

View on-line help Help On TerraModeler

Page 32: Terramodeler User Guide

Page 325 General Tools

Settings

Settings tool lets you change a number of settings controling the way TerraModeler works. Selecting this tool opens TerraModeler settings window.

Settings are grouped into logical categories. Selecting a category in the list causes the appropriate controls to be displayed to the right of the category list.

Cross sections / Elevation grid categoryElevation grid category in Cross sections folder defines the symbology of elevation grid labels in cross sections.

Cross sections / Elevation labels categoryElevation labels category in Cross sections folder defines the symbology of elevation labels in cross sections.

Setting: Effect:Font Font for elevation grid labels.Size Text size. Given in millimeters on paper.On side Defines labeling of range elevations - on the left, on the right or

on both sides of the range.

Setting: Effect:Direction Text rotation: horizontal or vertical.Digits Number of whole number digits in elevation labels.Decimals Number of decimals in elevation labels.Color Text and note line color for binding elevation.

Page 33: Terramodeler User Guide

Page 335 General Tools

Cross sections / Placement categoryPlacement category in Cross sections folder define how Draw Alignment Sections tool will group cross sections.

Place Slope Arrow / Arrows categoryArrows category in Place Slope Arrow folder defines the length and the outlook of arrows drawn by Place Slope Arrow tool.

Place Slope Arrow / Labels categoryLabels category in Place Slope Arrow folder defines the format and the symbology of labels drawn by Place Slope Arrow tool.

Profiles / Elevation grid categoryElevation grid category in Profiles folder defines the symbology of elevation grid labels in profiles

Setting: Effect:Rows How many cross sections to draw on top of each other.Order Order of cross sections in a group:

• First one at the bottom - station values increase upwards• First one at the top - station values increase downwards

Setting: Effect:Place by Placement point for a slope arrow. Can be set to arrow start or arrow

center.Arrowheads Number of arrowheads in a slope arrow:

• One - arrows always have one arrowhead.• One to three - number of arrowheads depends on the slope.

Length Two fields specifying the maximum and the minimum length of a slope arrow.

Slope Slope values at which the arrow length is equal to:- maximum length- two thirds of maximum length- one third of maximum length- minimum length

Setting: Effect:Write slope label If on, a text label will be placed along a slope arrow.Accuracy Number of decimals in the slope label.

Setting: Effect:Font Font for profile elevation grid labels.Size Text size. Given in millimeters on paper. On side Defines label position of grid elevation values - on the left, on the right

or on both sides of the range.

Page 34: Terramodeler User Guide

Page 345 General Tools

Profiles / Labels categoryLabels category in Profiles folder defines the format of station and elevation labels in profiles.

Profiles / Layouts categoryLayouts category in Profiles folder displays a list of user defined profile layouts. Each layout definition contains a list of data rows that will appear below the profile.

Profiles / Levels categoryLevels category in Profiles folder defines the levels on which various parts of a profile cell will be drawn.

Profiles / Titles categoryTitles category in Profile folder defines the symbology of profile name label and bottom row titles.

River sections / Coefficients categoryCoefficients category in River sections folder defines default friction coefficients for river sections.

Setting: Effect:Font Font for bottom row labels.Size Text size for bottom row labels. These include labeling for

stations and for surface elevations. Station labels - Direction Direction of station labels. Can be set to vertical or horizontal. Label station of each location If on, elevation labels for specific locations will include a station

value. Draw vertical line If on, elevation labels for specific locations will include a

vertical line.

Setting: Effect:Use Defines how to assign levels for profile cell components:

• Active level - use active level for all components.• Level settings - you can assign levels for different

components.

Setting: Effect:Font Font for profile name and scale labels.Size Text size for profile name and scale labels. Width Space reserved for bottom row titles on the left side of the

profile.

Setting: Effect:Left bank Default friction coefficient for left bank.Channel Default friction coefficient for channel.Right bank Default friction coefficient for right bank.

Page 35: Terramodeler User Guide

Page 355 General Tools

River sections / Symbology categorySymbology category in River sections folder defines the levels and the symbology of river cross section cells.

Color scheme legendsColor scheme legends category defines the size and the symbology of color scheme legend bars.

Contours categoryContours category defines the font and size of contour labels.

Element usage categoryElement usage category defines how graphical elements will be interpreted as points.

Setting: Effect:Surveyed section group Level and symbology for the surveyed part of the river section.Extended section group Level and symbology for the part of the river section which has

been derived by extending the section based on ground surface.Labels group Level and symbology settings for river section labels.

Setting: Effect:Scale Method for scaling bar height:

• Fixed – every color occupies the same height in the bar. You can define the height of one color as millimeters on paper.

• Relative – height of a color is relative to its elevation or slope interval. You can define the height of the whole bar.

Width Bar width in millimeters on paper.

Setting: Effect:Font Font for contour labels. Size Text size for contour labels. Given in millimeters on paper.

Setting: Effect:Radius Circles smaller than Radius are interpreted as a single points

(circle center). Larger circles are stroked into several points along the circumference.

Accept single character symbols

If on, accept single character text elements as elevation points.

Require +- sign in numbers If on, numerical text elements must have a sign character in order to be used as elevation labels.

Require decimal point in numbers

If on, numerical text elements must have a decimal point in order to be used as elevation labels.

Page 36: Terramodeler User Guide

Page 365 General Tools

Insert Point categoryInsert Point category defines whether Insert Point tool will add elevation labels permanently to the design file.

Lattice database categoryLattice database category defines the location of lattice database files.

Leveling points categoryLeveling points category defines the format and the symbology of elevation labels which Insert Point tool will create.

Measure Slope categoryMeasure Slope category defines the symbology of labels which Measure Slope tool will create.

Operation categoryOperation category defines what menus the application will open at startup and how the application can be closed.

Setting: Effect:Draw permanently If on, the text element is written to the design file.

If off, the text element is drawn temporarily.

Setting: Effect:Directory Defines the directory where lattice database files are located.

This directory may contain Intergraph GRD, Disimp or Ordnance Survey NTF files.

Setting: Effect:Font Font for leveling point text elements.Size Text size. Given in millimeters on paper.Accuracy Number of decimals in elevation labels.Display plus If on, sign will be displayed for positive elevations.Display minus If on, sign will be displayed for negative elevations.

Setting: Effect:Font Font for measurement labels.Size Text size. Given in millimeters on paper.

Setting: Effect:Create Applications Menu If on, TerraModeler will create an Applications menu in

MicroStation's command window at startup. This menu will contain items for opening TerraModeler tool boxes.

Open Main tool box If on, the application will open its Main tool box at startup.Open Surfaces window If on, the application will open the Surfaces window at startup.Main tool box is closed If on, the application will be unloaded when Main tool box is

closed.Open Flood Mapping If on, the application will open Flood Mapping extension tool

box at startup.

Page 37: Terramodeler User Guide

Page 375 General Tools

Quantity calculation categoryQuantity calculation category defines how small elevation differences will be ignored in quantity calculation

Saving surfaces categorySaving surfaces category defines when surface models will be saved automatically.

Surface types categorySurface types category displays a list of user defined surface types. Typically these such surface classes as ground, plan, bedrock and various soil layers. Whenever you create a new surface, you have to select a surface type from which the surface gets predefined symbology settings for profiles and colored triangles.

Triangulate Survey categoryTriangulate Survey tool creates a surface model from graphical elements created by a survey drawing or a mapping application. The feature coding of that application is used when deciding what elements can be used as valid data for the selected surface.

The settings in this category determine what applications should be called to enquire if an element represents valid data for the selected surface. An application can be called only if you have the selected application installed in your computer.

You do not have to have TerraSurvey installed to use its feature coding to filter elements for a surface model. When TerraSurvey creates survey drawing elements, it stores the active modeling settings of that feature as attribute data. TerraModeler knows how to interpret that data and select elements based on the creation time modeling settings.

Setting: Effect:Less than Accuracy limit for quantity calculation tools. If the elevation

difference of two surfaces is less than the limit, that column will be ignored.

Setting: Effect:When first created Save surface automatically when the surface is first created.When exiting Save surface automatically when unloading TerraModeler or

closing the design file.

Setting: Effect:TerraSurvey If on, use elements created by TerraSurvey. Accept by How to determine suitability of elements:

• Active feature list - call TerraSurvey to enquire suitability of an element based on the current feature list.

• Creation time settings - do not call TerraSurvey. Elements created by TerraSurvey may be accepted into the surface model based on information stored into the elements at creation time.

PRO600 If on, call Leica's PRO600.DigiCad If on, call GeoCad's DigiCad.DigiCad - Load if not loaded If on, load DIGICAD.MA if necessary.

Page 38: Terramodeler User Guide

Page 385 General Tools

Define Coordinate Setup

Define Coordinate Setup tool sets up the coordinate system that TerraModeler uses for surface model points. This coordinate setup determines the coordinate range inside which all points must be and the resolution to which coordinate values are rounded. This coordinate setup is stored into the active design file and is used by TerraScan, TerraPhoto, TerraModeler and TerraMatch.

TerraModeler uses signed 32 bit integer values for storing coordinates of points. This has the advantage of using only 12 bytes of memory for the coordinate information of each point.

You can control how accurately coordinate values are stored by defining how big each integer step is. One possible choice is to decide that one integer step is one millimeter. This would result in all coordinate values being rounded to the closest millimeter. At the same time it would impose a limitation on how far apart points can be or how big the coordinate values can be. Millimeter steps would produce a coordinate cube which has size 232 millimeters or 4294967.296 meters. If the origin of the coordinate system is at [0.0, 0.0, 0.0], this would limit coordinate values to be between -2147483 and +2147483.

One possibility is to use centimeters for integer steps. This would produce a coordinate range from -21 million to +21 million which is large enough for most coordinate systems.

To define a coordinate setup:

1. Select the Define Coordinate Setup tool.

This opens the Define Coordinate Setup dialog:

2. Enter settings values and click OK.

This modifies the coordinate system used by TerraScan, TerraPhoto, TerraModeler and TerraMatch in the active design file.

MicroStation SE and MicroStation JEach design file contains a definition of a 32 bit integer coordinate system which MicroStation uses internally for vector elements. All applications share the same coordinate setup with MicroStation. When you change the coordinate setup with Define Coordinate Setup, it changes the design file coordinate system.

MicroStation V8MicroStation V8 uses 64 bit values for storing vector elements. TerraModeler uses a coordinate setup which is separate from the design file coordinate system. The application uses a default coordinate setup of 100 integer steps for each master unit. You can use Define Coordinate Setup tool to change the coordinate setup which the application stores in the design file but it does not affect MicroStation itself or the vector elements.

Page 39: Terramodeler User Guide

Page 395 General Tools

Set Scale

Set Scale tool sets the intended plotting scale of your design and rescales elements. Plotting scale affects the size of text elements that TerraModeler creates.

To set the intended plotting scale:

1. Select the Set Scale tool.

The Set plotting scale window opens.

2. Enter value for the new scale.

Selected element types will be rescaled.

Surfaces

Surfaces tool opens a window for managing surfaces. You can use it to rename surfaces, view surface statistics, import and export data.

Surfaces window shows a list of available surfaces. For every existing surface model the list shows the number of points in the model and the elevation range.

See chapter Managing Surfaces on page 128 for more information.

Page 40: Terramodeler User Guide

Page 405 General Tools

Save Surfaces

Save Surfaces tool saves all modified surfaces to disk. When you work on a surface model, all the surface data is kept in the computer's RAM memory. This tool will make sure that all of the modifications have been saved.

You can use Surfaces tool to check what surfaces contain unsaved modifications. The Saved column in the list of surfaces indicates the storage status of each surface.

TerraModeler's user settings has a category for controling when surface models should be saved automatically. See Saving surfaces category on page 37 for more information.

About TerraModeler

About TerraModeler tool opens a window which shows information on TerraModeler and on user license.

Help On TerraModeler

Help On TerraModeler tool launches Acrobat Reader for accessing on-line help.

The on-line help is identical in structure to the printed documentation. The on-line version has hypertext links built in, so you can jump between topics by clicking on the topic names highlighted in green color.

Floppy based installation does not include on-line documentation. You can access on-line help only if you have installed from CD. Accessing on-line help also requires that you have Acrobat Reader installed on your computer.

Page 41: Terramodeler User Guide

Page 416 Creating Surface Models

6 Creating Surface Models

Create Surfaces tool boxThe tools in the Create Surfaces tool box are used create surface models or to add new points to an existing surface model.

To: Use:

Triangulate survey elements Triangulate Survey

Triangulate elements visible in a view Triangulate View

Triangulate elements by type and level Triangulate Elements

Insert elements as random points Insert Random Elements

Insert elements as breaklines Insert Breakline Elements

Page 42: Terramodeler User Guide

Page 426 Creating Surface Models

Triangulate Survey

Triangulate Survey tool creates a surface model from survey data that has been drawn into the design file with a survey drawing or a mapping application. The feature coding of that other application is used in deciding what elements can be accepted as valid data for the selected surface.

The elements may originate from one of three supported applications:

• TerraSurvey - a survey drawing application by Terrasolid.• PRO600 - a mapping application by Leica.• DigiCad - a map digitizing application by GeoCad.

You can use this tool to create a surface model or to add points to an existing model.

To triangulate survey elements:

1. Select the Triangulate Survey tool.

The Triangulate surface dialog box opens.

2. Select the surface to be triangulated. You can select a new surface or an existing surface.3. Click OK.

TerraModeler loads TerraSurvey and starts scanning the design file for survey elements. TerraSurvey is needed in deciding what will be used for the model.

Setting: Effect:Ignore point too close to another Thins the model by leaving out unnecessary points. If the

distance between two points is less than Minimum point distance, one of the points will be left out.

Generate points along breakline Improves the model by generating new points along a long breakline.

Filter error points Filters probable survey errors from the model and draws a small circle to mark the points that have been left out.

Page 43: Terramodeler User Guide

Page 436 Creating Surface Models

Triangulate View

Triangulate View tool creates a surface model from graphical elements displayed in a view. This tool will only use elements residing on levels visible in the selected view and located inside the view range.

This tool will add linear elements as breakline points and other element types as random points.

You can use this tool to create a surface model or to add points to an existing model.

To triangulate view elements:

1. Select the Triangulate View tool.2. Identify the view to triangulate.

The Triangulate surface dialog box opens.

3. Select the surface to be triangulated.4. Click OK.

Setting: Effect:Closed elements How to use closed elements: As breaklines, As 3D holes or

As 2D holes. Curve elements How to use curve elements: As breaklines or As contours.B-spline elements How to use B-splines: As breaklines or As contours.Other linear elements Other linear elements are always used as breaklines.Single point elements Single point elements are always used as random points.

Page 44: Terramodeler User Guide

Page 446 Creating Surface Models

Triangulate Elements

Triangulate Elements tool creates a surface model from graphical elements filtered by level, element type and symbology. You can save the filtering rules to a text file for later use.

You can use this tool to create a surface model or to add points to an existing model.

General procedure for triangulating elements by level and type:

1. Select the Triangulate Elements tool.

The Triangulate elements window opens.

2. Select the surface to be triangulated.3. Create a rule list for elements to be included in the model. Alternatively, you can load a

previously saved set of rules from a disk file.4. Click Triangulate.

Each filtering rule defines one element type residing on a specific level to be accepted for the model. Points extracted from the element can be used as random, breakline, contour, hole or boundary points.

Page 45: Terramodeler User Guide

Page 456 Creating Surface Models

You can use the Selection tool as an aid in creating new rules. Select an example element before choosing Add command from the Rule menu.

Setting: Effect:Name Description of the feature depicted by the elements. Level Level for which this rule applies to.Type Element type this rule applies to.Color If on, rule applies only to elements with a given color.Weight If on, rule applies only to elements with a given weight.Point type How to use the elements vertices in the surface model. Can

be set to random point, breakline, contour, 2D hole, 3D hole, 2D boundary or 3D boundary.

Page 46: Terramodeler User Guide

Page 466 Creating Surface Models

Insert Random Elements

Insert Random Elements tool adds graphical elements to a surface model as random points. You can use this tool to create a surface model or to add points to an existing model.

To insert element(s) to a surface as random points:

1. Select the Insert Random Elements tool.2. Identify the element to insert.3. Accept the element.

TerraModeler inserts the element to the surface. You can continue to step 2.

OR

1. Select element(s) to insert.2. Select the Insert Random Elements tool.3. Accept the element(s).

TerraModeler inserts the element(s) to the surface.

Setting: Effect:Minimum distance Thins the model by leaving out unnecessary points. If the

distance between two points is less than Minimum distance, one of the points will be left out.

Page 47: Terramodeler User Guide

Page 476 Creating Surface Models

Insert Breakline Elements

Insert Breakline Elements tool adds graphical elements to a surface model as breakline points. You can use this tool to create a surface model or to add points to an existing model.

To insert element(s) to a surface as breakline points:

1. Select the Insert Breakline Elements tool.2. Identify the elements to insert.3. Accept the element.

TerraModeler inserts the element to the surface. You can continue to step 2.

OR

1. Select element(s) to insert.2. Select the Insert Breakline Elements tool.3. Accept the element(s).

TerraModeler inserts the element(s) to the surface.

Setting: Effect:Ignore point too close to another If on, filter unnecessary points by Minimum distance. Minimum distance If the distance between two points is less than Minimum

distance, one of the points will be left out. Generate points along breakline If on, generate points along a long breakline. Every Distance between points to generate.

Page 48: Terramodeler User Guide

Page 487 Placing Elements Using a Surface Model

7 Placing Elements Using a Surface Model

Draw tool boxThe tools in the Draw tool box are used to view the shape of a surface model or to draw elements using a surface model.

To: Use:

View surface elevation / place elements on surface View Elevation

Compare elevations of two surfaces Compare Elevations

View slope of triangles View Slope

Measure slope of an element Measure Slope

Place line at a fixed slope Place Sloped Line

Set linear element to given elevation Set Linear Elevation

Create a parameterized copy of a linear element Copy Linear Element

Apply alignment offset and station locks Alignment Offset

Drop elements to follow surface Drop Element On Surface

Calculate and draw slope from an element Calculate Slope

Fill area with cells Fill Area With Cells

Page 49: Terramodeler User Guide

Page 497 Placing Elements Using a Surface Model

View Elevation

View Elevation tool lets you view the elevation of a surface model or to place elements on surface elevation. This tool opens a window which will show the surface elevation when you move your cursor in a view window.

To view surface elevation:

1. Select the View Elevation tool.

The View elevation window opens. As you move the mouse, this window will display the surface elevation under your mouse position.

To place elements on surface elevation:

1. Select the View Elevation tool.

The View elevation window opens.

2. Set Points on surface lock on. If you want to place elements above or below the surface, you can enter a Dz value. A positive value will place the elements above the surface. A negative value will place the elements below the surface.

3. Start the drawing primitive you want to use.

When Points on surface lock is on, TerraModeler will calculate the elevation for all data points entered in a top view window. The data point will be affected if the XY location falls inside the surface model area.

The view used for entering data points can be a top view window which has been rotated around the Z-axis.

Be sure to always turn this lock off after using it. As it will alter all data points, it may interfere with your normal work if you forget the lock has been turned on.

Page 50: Terramodeler User Guide

Page 507 Placing Elements Using a Surface Model

Compare Elevations

Compare Elevations tool compares elevations of two surfaces. It opens up a window which will show the surface elevations of two surfaces when you move your cursor in a view window.

To compare surface elevations:

1. Select the Compare Elevations tool.

The Compare surfaces window opens. As you move your mouse, this window will display the surface elevations under your cursor position. It will also the difference between the two selected surfaces.

View Slope

View Slope tool shows the slope gradients and the slope directions of surface model triangles. As you move the mouse inside a surface model, this tool will display the slope direction as an arrow pointing in the direction where water would run. The slope gradient will be display in the status bar.

To view slope directions and gradients:

1. Select the View Slope tool.

As you move your inside a surface model, the slope direction will be displayed as an arrow.

Page 51: Terramodeler User Guide

Page 517 Placing Elements Using a Surface Model

Measure Slope

Measure Slope tool measures the average vertical slope of a linear element. The slope will be calculated using formula:

Slope = 100 * (End z - Start z) / Horizontal length of element

Even if the element is a line string, this tool will not use the individual segments in the element. The slope will always be calculated from the element's start point to its end point.

The element to be measured has to be linear. Valid element types include lines, line strings, curves and arcs.

To measure the slope of an element:

1. Select the Measure Slope tool.2. Identify the element.

The slope percentage and the slope direction will be displayed.

3. Enter a data click to accept the labeling or a reset to reject the labeling. You can continue to step 2.

Place Sloped Line

Place Sloped Line tool places a line at a fixed vertical slope. You enter the start point of the line as a normal data point. The second data point defines the XY position of the end point. The elevation of the end point will be calculated using the given slope.

To place a line at a fixed slope:

1. Select the Place Sloped Line tool.2. Enter start point of the line.3. Enter end point of the line.

You can continue to step 3.

The slope is expressed as a percentage using formula:

Slope = 100 * Vertical distance / Horizontal distance

Page 52: Terramodeler User Guide

Page 527 Placing Elements Using a Surface Model

Set Linear Elevation

Set Linear Elevation tool adjusts a linear element to a given elevation. It sets a constant elevation for each vertex of the element.

To set the elevation of linear element(s):

1. Select the Set Linear Elevation tool.2. Key-in Elevation in the Tool settings window.3. Identify the element to adjust.4. Accept the element.

The element will be adjusted to the given elevation. You can continue to step 2 or 3.

OR

1. Select element(s) to adjust.2. Select the Set Linear Elevation tool.3. Key-in Elevation in the Tool settings window.4. Accept element(s).

The element(s) will be adjusted to the given elevation.

Copy Linear Element

Copy Linear Element tool creates a parameterized copy of a linear element.

The horizontal shape of the new element will be at a given offset from the original element.

The vertical shape of the new element can be computed from the original element, from another element or be fixed to a constant elevation.

This tool can be used to create a copy of a linear element at a given offset:

• Without changing elevations.• Setting elevation to a fixed value.• Using a given elevation difference from the original element.• Deriving vertical shape using an elevation difference or a gradient from another linear

element.

To create a copy of a linear element using elevation difference:

1. Select the Copy Linear Element tool.2. Choose Dz from original in Elevation by option button.3. Enter elevation difference in the Dz field. Use 0.0 if you want to keep the original

elevations.4. Identify the original element which determines the horizonal shape.5. Enter a mouse click to select the offset side (left or right).

A linear copy of the original element is created.

To create a copy of a linear element using another element for vertical shape:

1. Select the Copy Linear Element tool.2. Choose Dz from another element or Gradient from another element option in Elevation

by button.3. Enter elevation difference in the Dz field or gradient percentage in Gradient field.4. Identify the original element which determines the horizonal shape.

Page 53: Terramodeler User Guide

Page 537 Placing Elements Using a Surface Model

5. Identify the other element which determines the vertical shape.6. Enter a mouse click to select the offset side (left or right).

A linear copy of the original element is created.

Setting: Effect:Offset Horizontal offset of created copy from original element.Add vertices to long segments

If on, the application will add intermediate vertices to long line segments. This is useful to ensure that the created copy will follow both the horizontal shape of the original element and the vertical shape of another element.

Elevation by How the elevation is derived:• Keyin value – constant elevation given as a numerical value.• Elevation point – constant elevation given with a mouse click.• Dz from original – elevation difference from the original element.• Dz from another element – elevation difference from another ele-

ment.• Gradient from another element – gradient percentage from another

element.Projection How elevation is derived from another element:

• Shortest distance – each vertex is compared against the closest posi-tion on the other element.

• Perpendicular – each vertex is projected perpendicularly to the other element and elevation is derived from that location.

Page 54: Terramodeler User Guide

Page 547 Placing Elements Using a Surface Model

Alignment Offset

Alignment Offset tool provides an easy way to place elements at a specific station or at a specific offset from an alignment. This tool can use any linear element as the alignment.

Alignment Offset tool opens a window which dynamically displays station and offset values for the mouse location as you move it. You can lock data points by station, offset, elevation difference or gradient from the selected alignment.

General procedure for applying alignment locks:

1. Select the Alignment Offset tool.2. Identify the alignment element.3. Accept the element.

This opens the Alignment Offset window. Continue as in step 3, below.

OR

1. Select the alignment element.2. Select the Alignment Offset tool.

This opens the Alignment Offset window:

3. Set on the locks which you want to apply.4. Select the element placement tool you want to use.

When you enter a data point, its coordinates will be adjusted according to the alignment using the specified locks. Note that TerraModeler will not be able to display the effects of the locks dynamically as you move the mouse. The locks will have an effect only when you enter a data click.

Setting: Effect:Start station Station value for start point of the alignment. Default is zero. Station If on, XY location of a data point will be adjusted to the given

station position. Offset If on, XY location of a data point will be adjusted to the given offset

from the alignment. The data click will determine if the offset should be computed to the left or to the right from the alignment.

Dz If on, Z value of a data point will be calculated by adding this elevation difference to the elevation of the alignment element.

Gradient If on, Z value of a data point will be calculated by using this gradient percentage from the elevation of the alignment element.

Page 55: Terramodeler User Guide

Page 557 Placing Elements Using a Surface Model

Drop Element On Surface

Drop Element On Surface tool drops elements to follow a surface model. The two dimensional shape of an element will remain unchanged but it's three dimensional shape will be forced to follow the elevation of a surface model.

This tool will work on all linear elements and cells. A linear element will be converted into a line string or a complex chain of line strings. The line string vertex elevations will be calculated from the surface model. A cell element will remain as a cell. It will be dropped on the surface by calculating the elevation of it's origin point.

To drop element(s) on a surface:

1. Select the Drop Element On Surface tool.2. Identify the element to drop.3. Accept the element.

The element will be dropped on the surface. You can continue to step 2.

OR

1. Select element(s) to drop.2. Select the Drop Element On Surface tool.3. Accept element(s).

The element(s) will be dropped.

Setting: Effect:Dz A positive value will drop the element above the surface model

elevation. A negative value will drop the element below the surface.

Make copy If on, the original element will not be affected. Instead, a copy of the element will be created.

Set level If on, the dropped elements will be set to the given level.Outside surface Defines the way an element will be drawn outside the surface

model area. The three methods are:• Outside part will remain unchanged.• Outside part will be drawn with active color, line style and line

weight.• Outside part will not be drawn, thus resulting in a gap.

Page 56: Terramodeler User Guide

Page 567 Placing Elements Using a Surface Model

Calculate Slope

Calculate Slope tool calculates a slope from a graphical element onto a surface model. The starting element is either the top or the bottom edge of a slope. This tool will calculate the other edge of a slope and draw it as a line string type element. This new element will follow the elevation of a selected surface model.

The starting element has to be linear. Valid element types include lines, line strings, curves, arcs, ellipses, shapes, complex chains and complex shapes.

To calculate slope from an element:

1. Select the Calculate Slope tool.2. Enter slope angle.3. Identify the element to start from.4. Enter slope direction with a data click. The direction is either left or right from the element.

If found, the other edge of the slope will be drawn. You can continue to step 3.

Setting: Effect:Angle Slope angle in degrees. A positive value will calculate a slope upwards

from the starting element. A negative value will calculate a slope downwards. You can enter the angle as ratio of vertical and horizontal distances. For example, 1:3.

Min dist Minimum distance for vertices in the new line string. A mathematical slope may have some vertices very close to each other. For practical reasons, it is advisable to ignore some of these vertices.

Page 57: Terramodeler User Guide

Page 577 Placing Elements Using a Surface Model

Fill Area With Cells

Fill Area With Cells tool fills a bounded area with randomly placed cells. This tool could be used to generating a drawing of a naturally grown forest by filling an area with tree cells.

The area has to be bounded either by placing a fence or by selecting a closed element.

This tool can be used with two or three dimensional cells. You can use surface models to define the bottom elevation or the top elevation of the cells. Typically, a model of the ground might be used for the cell bottom elevation.

You can define some random variation to better resemble naturally grown plants. Variation in cell height, width and rotation angle will often result in a more realistic image.

To fill an area with cells:

1. Define the area by placing a fence or by selecting a closed element.2. Select the Fill Area With Cells tool.

The Fill area with cells dialog box opens.

3. Fill in settings values in the dialog.

The application will start filling the area with cells. This process will stop when the area is filled.

Page 58: Terramodeler User Guide

Page 587 Placing Elements Using a Surface Model

Setting: Effect:Cell name Name of a two or three dimensional cell.Level Level on which cells will be placed.Area borders Defines whether cells may partially overlap border of they have to

completely within the borders.Bottom as A surface model for the bottom elevation of cells. If set to Fixed

elevation, all cells will be placed at a given elevation.Top as A surface model for the top elevation of cells. If set to Fixed

height, all cells will be drawn in given height.Radius as Defines the width of cells:

• Ratio from height - calculates width as a direct ratio from cell height as drawn in cell library.

• Constant - use the same radius for all cells.Minimum distance Defines how close to each other cells may placed. If less than 100

percent, some cells may partially overlap each other. For forests, this value should be set between 60 and 120 percent.

Height Random variation for cell height. Width Random variation for cell width.Rotate cells If on, will rotate cells randomly.

Page 59: Terramodeler User Guide

Page 598 Editing Surface Models

8 Editing Surface Models

Edit Point tool boxThe tools in the Edit Point tool box are used to modify a surface model on point-by-point basis.

To: Use:

Construct / remove a breakline between points Construct Breakline

Insert point along a breakline Insert Point Along Breakline

Insert a point to the model Insert Point

Move a point in the model Move Point

Remove a point from the model Remove Point

Exclude/include triangles Exclude Triangle

Page 60: Terramodeler User Guide

Page 608 Editing Surface Models

Construct Breakline

Construct Breakline tool constructs or removes breaklines between existing points in a model. Breaklines affect the way a model is triangulated. A breakline will always appear as a triangle edge running along the breakline and connecting the two breakline points.

This tool will prompt you to identify two points in a surface model. A breakline will be constructed, if the two points are not already connected by one. If the two points are connected by a breakline, this tool will remove it.

Constructing or removing breaklines does not affect the actual points in a model, but it will change the way those points are connected by the triangle network.

To construct or remove breaklines:

1. Select the Construct Breakline tool.2. Select a view for breakline display.

Breaklines inside the selected view will be displayed as yellow lines.

3. Identify first point in the model.4. Identify second point in the model.

A breakline will be constructed or removed. You can continue to step 3.

Attempting to construct a breakline may fail because:

• The new breakline would intersect an existing breakline. Breaklines can not intersect each other. Try removing the old breakline first.

• The two points are far apart. Try constructing a shorter breakline first.• The breakline would break through a very large number of triangle edges. Try constructing a

shorter breakline first.

Page 61: Terramodeler User Guide

Page 618 Editing Surface Models

Insert Point Along Breakline

Insert Point Along Breakline tool inserts new points along an existing breakline. This is useful if the distance between two breakline points is very long compared to the average distance between surface points. A long breakline produces long narrow triangles in the surface model. Interpolating new points along the breakline will improve the surface model by making the triangles more uniform in size and closer to equilateral.

The elevation along the breakline will not change as the elevation of the new point will be interpolated from the two end points of the breakline.

To insert a point along a breakline:

1. Select the Insert Point Along Breakline tool.2. Select a view for breakline display.

Breaklines inside the selected view will be displayed as yellow lines.

3. Enter a new point. The data point you enter will be projected to the closest breakline.

A new point will be interpolated and inserted to the model. You can continue to step 3.

Page 62: Terramodeler User Guide

Page 628 Editing Surface Models

Insert Point

Insert Point tool adds a new point to a surface model. You enter the X and Y location as a data point. The elevation can be a key-in value or the elevation of the data point.

To insert a point using a key-in elevation:

1. Select the Insert Point tool.2. Make sure Z toggle is on.3. Input the desired elevation in the Tool settings window.4. Enter a data point for the new point position.

The point is added to the model and a leveling text is drawn at the location. You can continue to step 3 or 4.

To insert a point using a data point elevation:

1. Select the Insert Point tool.2. Make sure Z toggle is off.3. Enter a data point to define the X, Y and Z coordinates of the new point.

The point is added to the model and a leveling text is drawn at the location. You can continue to step 3.

Page 63: Terramodeler User Guide

Page 638 Editing Surface Models

Move Point

Move Point tool moves an existing point in a surface model. This tool supports three modes of operation:

• In Elevation mode only the elevation of the point changes. The XY location remains the same. You can enter the new elevation as a key-in value or as a data point.

• In Xy location mode only the XY location changes, the elevation remains the same.• In Xyz location mode all of the coordinates will be modified.

To move a point to a new key-in elevation:

1. Select the Move Point tool.2. Choose Elevation option in the Change field.3. Key in the new elevation in the Move Z field.4. Identify the point to move.5. Accept the new coordinates with a data point.

You can continue to step 3 or 4.

To move a point to a new data point elevation:

1. Select the Move Point tool.2. Choose Elevation option in the Change field.3. Identify the point to move.4. Enter the new elevation with a data point.

You can continue to step 3.

To move a point to a new XY location:

1. Select the Move Point tool.2. Choose Xy location in the Change field.3. Identify the point to move.4. Enter the new XY location with a data point.

You can continue to step 3.

To move a point to a new XYZ location:

1. Select the Move Point tool.2. Choose Xyz location in the Change field.3. Identify the point to move.4. Enter the new location with a data point.

You can continue to step 3.

Page 64: Terramodeler User Guide

Page 648 Editing Surface Models

Remove Point

Remove Point tool deletes a point from a surface model. It will automatically reorganize the triangulation at the modified location.

To remove a point from a model:

1. Select the Remove Point tool.2. Identify point.

The point is removed from the model. You can continue to step 2.

Exclude Triangle

Exclude Triangle tool excludes or includes triangles in a surface model. An included triangle is considered to be valid information about a surface. An excluded triangle is invalid - the surface does not exist at that location or the elevation is unknown. An excluded triangle will not be drawn in profiles, will not be used in volume calculations or will not be used when displaying presentations.

To include or exclude triangles one at a time:

1. Select the Exclude Triangle tool.2. Choose method One at a time in settings window.

As you move the mouse, the underlying triangle will be displayed in either Included color or Excluded color.

3. To toggle the status of a triangle, enter a data click.

To include or exclude triangles by painting:

1. Select the Exclude Triangle tool.2. Choose method Paint in settings window.3. Identify view for triangle display.

All triangles will be displayed filled with the appropriate color.

4. Enter a data click in the first triangle to exclude. As you move the mouse after the first data click, all triangles the mouse passes over will be excluded. To end excluding triangles, enter a second data click.

You can use a similar procedure to include triangles. The data click in step 4 will determine, if this tool will include or exclude triangles. If you enter a data click in an excluded triangle, this tool will start including triangles the mouse passes through.

Page 65: Terramodeler User Guide

Page 658 Editing Surface Models

Edit Area tool boxThe tools in the Edit Area tool box are used to modify the fence contents of a surface model. These tools will modify surface model points or triangles bounded by a fence.

You can define the area either by placing a fence or by selecting a shape element. The operation will take place either inside or outside the fence depending on the selected fence mode.

These tools will treat the fence as a two dimensional boundary. The Z coordinates of both fence vertices and surface model points will be ignored when deciding what points are inside the fence.

To: Use:

Flatten points to a fixed elevation Flatten Area

Raise / lower points by a vertical distance Move Area

Drop / lift points to follow another surface Drop Area

Exclude triangles Exclude Area

Insert elements as internal hole boundaries Insert Hole Element

Remove points from the model Remove Area

Page 66: Terramodeler User Guide

Page 668 Editing Surface Models

Flatten Area

Flatten Area tool flattens surface model points to a fixed elevation. This tool will set the elevation of all points inside or outside a fence.

You can enter the new elevation as a key-in value or as a data point.

To flatten area points to a key-in elevation:

1. Place a fence or select a shape element to define the area.2. Select the Flatten Area tool.3. Key in the new elevation in the Z field.4. Accept fence contents.

The points are flattened to the given elevation. You can continue to step 1 or 3.

To flatten area points to a data point elevation:

1. Place a fence or select a shape element to define the area.2. Select the Flatten Area tool.3. Set the Z toggle off.4. Enter the new elevation as a data point.

The points are flattened to the elevation of the data point. You can continue to step 1 or 3.

Flatten Area tool will often be used in creating a flat plane inside a model. Because this tool will not clip the triangles overlapping the fence border, this operation alone will not produce a flat area with an exact boundary. This tool will affect only the points inside the area. After the operation the surface model may start sloping down or up within the used boundary.

In order to create an exactly bounded flat area, you have to add the boundary lines to your surface model and make sure that triangles do not overlap the boundary.

General procedure for creating a flat plane:

1. Set the active depth to the desired elevation.2. Place a shape element at the desired elevation to define the area.3. Add the bounding element to the surface model as breakline points using Insert Breakline

Elements tool.4. Select the bounding element.5. Start the Flatten Area tool to fix all the points inside the bounding element to the desired

elevation.

Page 67: Terramodeler User Guide

Page 678 Editing Surface Models

Move Area

Move Area tool moves surface model points up or down for a given distance. This tool will modify the elevation of all points inside or outside a fence.

You can enter the distance as a key-in value or with a data point.

To move area points by a key-in distance:

1. Place a fence or select a shape element to define the area.2. Select the Move Area tool.3. Key in the vertical distance in Dz field.4. Accept fence contents.

The points are moved up or down. You can continue to step 1 or 3.

To move area points by a data point elevation:

1. Place a fence or select a shape element to define the area.2. Select the Move Area tool.3. Set the Dz toggle off.4. Enter a data point to define the distance to move.

The points are moved up or down. The elevation difference between the data point and the surface elevation is used as the distance. As a result of the process, the surface elevation will be the same as the data point at its location.

You can continue to step 1 or 3.

Setting: Effect:Dz Vertical distance. A positive value will raise points upwards. A

negative value will lower points downwards.

Page 68: Terramodeler User Guide

Page 688 Editing Surface Models

Drop Area

Drop Area tool modifies the elevations of surface model points according to selected surfaces. The direction of movement is either up or down.

If the direction is down, a point in the active surface will be modified if it is contained by the fence and if one of the selected surfaces is found below that point's elevation. The elevation will be set to the highest elevation of the surfaces below the point.

If the direction is up, a point in the active surface will be modified if it is contained by the fence and if one of the selected surfaces is found above that point's elevation. The elevation will be set to the lowest elevation of the surfaces above the point.

To drop area points:

1. Place a fence or select a shape element to define the area.2. Select the Drop Area tool.3. Choose the active surface.4. Accept fence contents.

The Drop surface points onto surfaces dialog box opens.

5. Select surfaces onto which points will be dropped.6. Click OK.

Page 69: Terramodeler User Guide

Page 698 Editing Surface Models

Exclude Area

Exclude Area tool excludes or includes surface model triangles. This tool will operate on all the triangles inside or outside a fence. The application will use the center point of a triangle when deciding if the triangle is inside or outside a fence.

To exclude area triangles:

1. Place a fence or select a shape element to define the area.2. Select the Exclude Area tool.3. Choose operation Exclude in settings window.4. Accept fence contents.

The triangles are excluded.

To include area triangles:

1. Place a fence or select a shape element to define the area.2. Select the Exclude Area tool.3. Choose operation Include in settings window.4. Accept fence contents.

The triangles are included.

Page 70: Terramodeler User Guide

Page 708 Editing Surface Models

Insert Hole Element

Insert Hole Element tool creates a void area inside the surface model by excluding all triangles inside a closed element. This bounding element can serve as a 2d boundary or as a 3d boundary.

When used as a 2d boundary, the elevation of the element has no effect. The two dimensional shape of the element will be combined with the existing elevation of the surface model to create a boundary.

When used with a 3d boundary, this tool will insert the three dimensional vertices of the element into the surface model to build a boundary.

The boundary element has to be a closed linear element. Valid element types include shapes, complex shapes and ellipses.

To insert element(s) to a surface as hole boundaries:

1. Select the Insert Hole Element tool.2. Identify the element to insert.3. Accept the element.

TerraModeler inserts the element to the surface and builds a void area inside. You can continue to step 2.

OR

1. Select element(s) to insert.2. Select the Insert Hole Element tool.3. Accept the element(s).

TerraModeler inserts the element(s) to the surface.

Setting: Effect:Insert as Set the boundary type:

• 2d boundary - use only the two dimensional shape of the element.• 3d boundary - insert vertices using the elevation of the element.

Page 71: Terramodeler User Guide

Page 718 Editing Surface Models

Remove Area

Remove Area tool deletes points from a surface model. This tool will remove all points inside or outside a fence.

To remove area points:

1. Place a fence or select a shape element to define the area.2. Select the Remove Area tool.3. Accept fence contents.

The points will be removed.

Page 72: Terramodeler User Guide

Page 729 Drawing Profiles

9 Drawing Profiles

Profiles tool boxThe tools in the Profiles tool box are used to draw profiles and cross-sections.

To: Use:

Draw cross section view Draw Section View

Draw profile along an alignment Draw Profile

Draw cross sections along an alignment Draw Alignment Sections

Update profile or cross section Update Profile

Project 3d elements into a profile Project Into Profile

Project elements from a profile to 3d Project From Profile

Label profile with an element's elevations Label Profile Elevations

Output surface elevations along an alignment Output Profile Elevations

Output surface elevations for cross sections Output Section Elevations

Page 73: Terramodeler User Guide

Page 739 Drawing Profiles

Draw Section View

Draw Section View tool creates a 3D section view that can used for design purposes. A section view is a rotated view along a section line.

A section view is not meant to be plotted on paper. As its name implies, it is a rotated cross section view drawn at the true 3D position of the section line. This makes it ideal for design purposes. If you use a section view to place elements, they will be drawn to a true 3D position.

To draw a section view:

1. Select the section view line element.2. Select the Draw Section View tool.

Continue as in step 4, below.

OR

1. Select the Draw Section View tool.2. Enter start point for section line.3. Enter end point for section line.4. Define section view depth by entering a data click or by keying in a value in the Depth

field.5. Identify view to be used as the section view.

This view will be rotated to show a cross section with the section line start point on the left and the section line end point on the right.

Setting: Effect:Mode Drawing mode for surfaces and range:

• Draw temporarily - will be erased when you update the view.• Write to file - draw as permanent elements.

Z range Defines how elevation range will be set:• None - range will not be drawn.• Automatic - TerraModeler decides the range for you.• Prompt for - TerraModeler prompts you to enter the range with

a dialog box.Level Level for surfaces and range.Text size Text size for elevation grid labels.Depth Display depth on both sides of section line.

Page 74: Terramodeler User Guide

Page 749 Drawing Profiles

Draw Profile

Draw Profile tool draws a profile along alignment element. The profile will show the shape of surface models along the alignment. A profile is drawn as a cell element that can be freely positioned anywhere in the design file.

The horizontal length of the profile cell is equal to the 2D length of the alignment element. The horizontal scale represents the intended plotting scale of the profile. All text items in the profile will be scaled with this plotting scale in mind.

The alignment element can be any linear element. Valid element types include lines, line strings, curves, arcs, ellipses, shapes, complex chains and complex shapes.

To draw a profile:

1. Select the alignment element.2. Select the Draw Profile tool.

Continue as in step 3, below.

OR

1. Select the Draw Profile tool.2. Identify the alignment element.

The Draw profile dialog box opens.

3. Fill in settings values in the dialog.4. Click OK.5. Enter a data point to position the profile cell.

Page 75: Terramodeler User Guide

Page 759 Drawing Profiles

Setting: Effect:Name Name drawn at the top of the profile.Layout Layout scheme which defines the data rows that will appear below

the elevation grid of the profile.Horizontal Horizontal scale defines the intended plotting scale.Vertical Vertical scale defines the elevation exaggeration as the ratio of

horizontal / vertical scale.Label Position where scale labels will be drawn.Start station Start station of the alignment element.Label stations If on, alignment stations will be written below the profile.Step Step for alignment stations.At fixed intervals If on, label surface elevations below the profile at fixed intervals.

Click Surfaces push button to control which surfaces will be written.

At specific locations If on, label surface elevations at locations where there is a change in the surface model:• All triangle edges - locations where the alignment intersects a

triangle edge.• Breakline edges - locations where the alignment intersects a

breakline edge.• Slope changes - locations where the slope changes more than a

given limit.• Peaks and pits - local maximum and minimum elevations.

Page 76: Terramodeler User Guide

Page 769 Drawing Profiles

Draw Alignment Sections

Draw Alignment Sections tool draws cross sections along an alignment. Each cross section will show the shape of surface models at a position along the alignment. You can specify the cross section extents as a left width and a right width perpendicular from the alignment.

The cross sections will be drawn as a group of cells that can be freely positioned anywhere in the design file.

The alignment element can be any linear element. Valid element types include lines, line strings, curves, arcs, ellipses, shapes, complex chains and complex shapes.

To draw alignment sections:

1. Select the alignment element.2. Select the Draw Alignment Sections tool.

Continue as in step 3, below.

OR

1. Select the Draw Alignment Sections tool.2. Identify the alignment element.

The Draw sections along alignment dialog box opens.

3. Fill in settings values in the dialog.4. Click OK.5. Enter a data point to position the group of cross section cells.

Page 77: Terramodeler User Guide

Page 779 Drawing Profiles

Setting: Effect:Start station Start station of the alignment element.From station Position from where the first section will be drawn.To station Position from where the last section will be drawn.Interval Station interval between two successive sections. Determines

the number of sections drawn.Left width Section width perpendicular from the alignment.Right width Section width perpendicular from the alignment.Horizontal Horizontal scale defines the intended plotting scale.Vertical Vertical scale defines the elevation exaggeration as the ratio of

horizontal / vertical scale.Binding Defines how the range will change along the alignment:

• Stays constant - no change.• Follows 3d alignment - changes in the alignment elevation

will be reflected in the range.• Follows surface - changes in the elevation of a selected

surface will be reflected in the rangeFrom Elevation range for the first section.To Elevation range for the first section.Binding elevation If on, the binding elevation will be labeled with a note line in the

cross section.

Page 78: Terramodeler User Guide

Page 789 Drawing Profiles

Update Profile

Update Profile tool updates a profile cell or an alignment section cell after surface models have been modified. This tool will redraw the selected cells.

To update a profile:

1. Select the Update Profile tool.2. Identify a profile cell or an alignment section cell.3. Accept the element.

The profile will be redrawn. You can continue to step 2.

OR

1. Select profile cell(s) or alignment section cell(s) to update.2. Select the Update Profile tool.3. Accept the element(s).

The element(s) will be redrawn.

Page 79: Terramodeler User Guide

Page 799 Drawing Profiles

Project Into Profile

Project Into Profile tool projects 3D elements into a profile or a cross section. This tool will create a copy of the element with its coordinates translated into the profile's coordinate system.

The element to be projected has to be a cell or a linear element. The element should be positioned within the extents of the profile alignment.

To project an element into a profile:

1. Select the Project Into Profile tool.2. Identify profile the element(s) will be projected into.3. Identify element to project.4. Accept element to project.

The element will be projected into the profile. You can continue to step 3.

OR

1. Select element(s) to project.2. Select the Project Into Profile tool.3. Identify profile the element(s) will be projected into.4. Accept element(s).

The element(s) will be projected into the profile.

Linear elements will produce a line string or a complex chain of line strings when projected. The application will calculate a line string that approximates an arc, an ellipse or a curve.

Page 80: Terramodeler User Guide

Page 809 Drawing Profiles

Project From Profile

Project From Profile tool projects elements from a profile into their 3D position. This tool will create a copy of the element transformed to run along the profile's alignment.

This tool is often used with an element representing a vertical alignment that has been designed in the profile. The element has to be linear. It should not extend beyond the profile's left or right margin.

To project an element from a profile:

1. Select the Project Into Profile tool.2. Identify profile the element(s) will be projected from.3. Identify element to project.4. Accept element.

The element will be projected resulting in a new 3D complex chain running along the profile's alignment. You can continue to step 3.

OR

1. Select element(s) to project.2. Select the Project From Profile tool.3. Identify profile the element(s) will be projected from.4. Accept element(s).

The element(s) will be projected.

Setting: Effect:Horizontal step Maximum station interval for vertices in the new 3D complex

chain. Each successive vertex will be within the horizontal step from the previous vertex.

Page 81: Terramodeler User Guide

Page 819 Drawing Profiles

Label Profile Elevations

Label Profile Elevations tool labels a profile with elevation values. The elevations can come from an element drawn in the profile or from points identified in the profile.

This tool is often used with an element representing a vertical alignment that has been designed in the profile. The element has to be linear. It should not extend beyond the profile's left or right margin. This tool will translate the y-coordinates of the element into elevation values and write those values below the profile.

To label profile with an element's elevations:

1. Select the Label Profile Elevations tool.2. Identify profile the element has been drawn in.3. Choose Linear element option in the Method field.4. Identify element to label.5. Accept the element.

The element's elevations will be labeled. You can continue to step 4.

To label profile with point elevations:

1. Select the Label Profile Elevations tool.2. Identify the profile to label.3. Choose Single location option in the Method field.4. Enter a point inside the profile range.

The point elevation will be labeled. You can continue to step 4.

Setting: Effect:Method Labeling method:

• Linear element - label elevations along a linear element.• Single location - label the elevation of a single location.

Step If Method is Linear element, this setting controls the station interval for elevation labels.

Label station If on, write the station value for each elevation.Draw vertical line If on, draw a vertical line for each elevation position.Bottom row Bottom row where elevations will be written. Given as

millimeters below the range.Font Text font.Size Text size. Given in millimeters on paper. Actual size is calculated

using the horizontal scale of the profile.

Page 82: Terramodeler User Guide

Page 829 Drawing Profiles

Output Profile ElevationsNot Field

Output Profile Elevations tool creates a report which contains surface model elevations along an alignment in text format. You can view the report, print it out or save it as a text file.

You can select to output elevations at fixed interval or at places where there is a change in shape of the surface model.

To output elevations along an alignment:

1. Select the Output Profile Elevations tool.2. Identify the alignment to output elevations along.3. Accept the highlighted alignment.

This opens the Output profile elevations dialog:

4. You can click Format to select options controling the output format.5. Fill in settings values and click OK.

This opens a report window which contains the elevations.

Setting: Effect:Surface Surface to output elevations from.Alignment name Descriptive name for the alignment.Start station Station value at start of the alignment element.Output at fixed intervals If on, output surface elevations at a fixed interval. Step field

determines the size of the interval.Output at surface changes If on, output surface elevations at locations where there is a change

in the surface model:• All triangle edges - alignment intersects a triangle edge.• Breakline edges - alignment intersects a breakline edge.• Slope changes - slope changes more than a given limit.• Peaks and pits - local maximum and minimum elevations.

Page 83: Terramodeler User Guide

Page 839 Drawing Profiles

Format push button in Output profile elevations dialog opens a window for controling the output format:

The output file may contain some starting rows: Header, Surface name and Alignment name fields will each generate one output row if selected.

Each elevation position will be written on one row. You can select what information fields to output: Station, Easting, Northing, Elevation.

When using Output at fixed intervals setting, the application will compute elevation positions at fixed intervals along the alignment. Some of those positions may be outside the surface model. Outside field determines if those positions will bewritten and what text is written for the output.

When using Output at surface changes setting, the application will generate positions only at specific triangle edges. The alignment may go outside the surface model in between the generated positions. If Write row is on, the application will output a row between the positions to indicate that the alignment went outside the surface model or thru a hole in the model.

Page 84: Terramodeler User Guide

Page 849 Drawing Profiles

Output Section ElevationsNot Field

Output Section Elevations tool creates a text report which contains surface model elevations from cross sections of an alignment. You can view the report, print it out or save it as a text file.

You can select to output elevations at fixed interval or at places where there is a change in shape of the surface model.

To output elevations from alignment sections:

1. Select the Output Section Elevations tool.2. Identify the alignment for the sections.3. Accept the highlighted alignment.

This opens the Output section elevations dialog:

4. You can click Format to select options controling the output format.5. Fill in settings values.6. Check the surface to output in the list box and click OK.

This opens a report window which contains the elevations.

Setting: Effect:Alignment name Descriptive name for the alignment.Start station Station value at start of the alignment element.From station Position from where to output the first section.To station Position from where to output the last section.Interval Station interval between two successive sections.Left width Width of the cross section left from the alignment.Right width Width of the cross section right from the alignment.Output at fixed intervals If on, output surface elevations at a fixed interval. Step field

determines the size of the interval.

Page 85: Terramodeler User Guide

Page 859 Drawing Profiles

Format push button in Output section elevations dialog opens a window for controling the output format:

The output file may contain some starting rows: Header, Alignment name and Surface count fields will each generate one output row if selected.

If Section start is on, a row will be written to indicate the start of a new cross section. You can specify the prefix text appearing before the station value.

if Surface start field is on, a row will be written to indicate the start of a new surface. You can specify the prefix text appearing before the surface name.

Each elevation position will be written on one row. You can select what information fields to output: Offset, Easting, Northing, Elevation.

When using Output at fixed intervals setting, the application will compute elevation positions at fixed intervals along the alignment. Some of those positions may be outside the surface model. Outside field determines if those positions will bewritten and what text is written for the output.

When using Output at surface changes setting, the application will generate positions only at specific triangle edges. The alignment may go outside the surface model in between the generated positions. If Write row is on, the application will output a row between the positions to indicate that the alignment went outside the surface model or thru a hole in the model.

Output at surface changes If on, output surface elevations at locations where there is a change in the surface model:• All triangle edges - section intersects a triangle edge.• Breakline edges - section intersects a breakline edge.• Slope changes - slope changes more than a given limit.• Peaks and pits - local maximum and minimum elevations.

Setting: Effect:

Page 86: Terramodeler User Guide

Page 8610 Generating Displays

10 Generating Displays

Display Surface tool boxThe tools in the Display Surface tool box are used to generate displays from a surface model.

The first six icons generate different visualizations of a surface model. TerraModeler is capable of generating contours, colored triangles, a colored grid, elevation texts, slope arrows or a shaded surface. The first five display methods can be drawn as permanent elements written to the design file or as temporary elements which are not saved on disk.

All of the six display methods are updatable. If you make modifications to a surface model, you can update the display methods with the Update Displays tool.

Display Boundary tool creates elements which are not updatable.

To: Use:

Display contours Display Contours

Display colored triangles Display Triangles

Display colored grid Display Grid

Display elevation as grid spaced texts Display Elevation Texts

Display grid spaced slope arrows Display Slopes

Display coloring by elevation and sun angle Display Shaded Surface

Update displays after surface modification Update Displays

Erase contours, triangles or grid Erase Display

Display surface model boundary Display Boundary

Page 87: Terramodeler User Guide

Page 8710 Generating Displays

Display modesTerraModeler supports three different modes in which displays may be generated.

Write to file mode adds the created elements to the design file. This has the disadvantage of increasing the design file size quite substantially in some display methods. Very large surface models may result in exceeding the 32MB maximum size limit of design files. The obvious advantages include the ability manipulate the elements using MicroStation's builtin tools and the ability to save the display on disk as a part of the design file.

Display only mode computes the display elements and stores those in RAM memory. It will draw the elements every a view is updated. This mode is supported only by tools which may require lengthy calculations to create the display. These include Display Contours and Display Grid tools.

Preview mode recalculates and draws the display elements each time a view is updated. This display mode will not increase the design file size nor waste any RAM memory. This mode is supported only by tools which can quickly recalculate the whole display.

Page 88: Terramodeler User Guide

Page 8810 Generating Displays

Display Contours

Display Contours tool draws contours for a surface model. You can generate very quick contours which are suitable for verifying the surface model or you can generate quality contours to be plotted on paper.

Contours can be drawn as:

• Curves - smooth elements for which MicroStation computes the curvature. Results in fairly compact elements but can cause contours to intersect each other.

• Line strings - sharp elements suitable for mathematical design surfaces or for surface verification.

• Smooth line strings - smooth elements for which TerraModeler computes the smoothing by inserting additional vertices. Results in larger elements.

To display contours:

1. Select the Display Contours tool.

The Display contours dialog box opens.

2. Fill in settings values in the dialog.

TerraModeler supports three different types of contours. Minor contours, basic contours and major contours can be distinguished from each other by line color, weight or style. You can select which of the contour types will be displayed and at what intervals.

Options pulldown menu has commands for defining options for contours, labels and ticks.

Page 89: Terramodeler User Guide

Page 8910 Generating Displays

Contour options

Contour option: Effect:Minor Level, color, style and weight for minor contours.Basic Level, color, style and weight for basic contours.Major Level, color, style and weight for major contours.Only elevations If on, contours will be drawn within the given elevation range.Minimum area Helps in leaving out unnecessary detail. A closed contour curve

will not be drawn, if the enclosed surface area is smaller than minimum area.

Build complex chains If on, contours will be drawn as complex chains or as complex shapes.

Smoothing If off, contours will pass through triangle edges at mathematically correct positions which may result in jagged edges.If on, contour vertices will be adjusted slightly to produce more natural looking results.

Thin by removing points if If on, some of the computed contour vertices may be left out. This will help minimize design file size when creating contours for very large surface models.

Distance Vertex can be left out only if the distance between the previous and the next remaining vertex is smaller than this.

Deviation Vertex can be left out only if it is closer than this distance to the line segment connecting the previous and the next remaining point.

Turn angle Vertex can be left out only if the contour direction changes less than this angle at the vertex.

Page 90: Terramodeler User Guide

Page 9010 Generating Displays

Contour label options

Contour label option: Effect:Label What type of contours should be labeled.Position Location where labels are placed:

• Above contour - above contour at specified intervals.• On contour - overlapping contour line at specified intervals.• Below contour - below contour at specified intervals.• At contour start - at the start point of a contour chain.

Rotation Rotation of label text element:• Uphill - label is readable when looking uphill.• Downhill - label is readable when looking downhill.

Every Interval of contour labels as meters along the contour.Cut underlying contour If on, generates a gap in the contour element overlapped by a

label. The gap part is drawn as a construction class element. You can use view attributes to control the visibility of the gap parts.

Use How to determine level and color for contour labels:• Contour level and color - label is drawn using level and color

of its contour line (major, basic or minor).• Own settings - all labels are drawn using the same level and

color assigned to labels.Prefix Prefix added to the beginning of every contour label.Suffix Suffix added to the end of every contour label.Accuracy Number of decimals shown in contour labels.Display plus If on, sign will be displayed for positive elevations.Display minus If on, sign will be displayed for negative elevations.

Page 91: Terramodeler User Guide

Page 9110 Generating Displays

Contour tick options

Contour tick option: Effect:Every Interval of contour ticks as meters along the contour.Only depressions If on, only closed depressions will have ticks.Maximum area If on, only closed depressions smaller than a given area

will have ticks.Draw as Shape of contour ticks: line or triangle.Length Length of the tick line or triangle.

Page 92: Terramodeler User Guide

Page 9210 Generating Displays

Display Triangles

Display Triangles tool draws colored triangles for a surface model. You can create a coloring scheme where the color changes according to the surface elevation or according to the slope of the triangles.

To display triangles:

1. Select the Display Triangles tool.

The Display triangles dialog box opens.

2. Fill in settings values in the dialog.

Creating a coloring schemeColoring scheme dialog box allows you to create a coloring scheme for a surface model by assigning colors for different elevations. A vertical bar on the left shows all the colors currently assigned in the scheme. Each color boundary has an elevation label displaying the elevation where that color change will occur. The text label is black, if the elevation boundary is fixed. A white elevation boundary has not been fixed and will be recalculated if you change the number of colors in the scheme.

Page 93: Terramodeler User Guide

Page 9310 Generating Displays

To assign a new color:

1. Click on one of the available colors in the color table on the right.

This adds the new color to the Colors bar and recalculates all unfixed elevation boundaries.

To fix an elevation boundary:

1. Click on the text label of the elevation boundary.

This opens a dialog box where you can enter an elevation value.

Use menu item: To:File - Open Open a previously saved coloring scheme from a file.File - Save As Save coloring scheme to a file.Color - Add empty Add an empty color which will not be drawn.Color - Remove last Remove last color from coloring scheme.Color - Remove all Remove all colors from coloring scheme.

Page 94: Terramodeler User Guide

Page 9410 Generating Displays

Display Grid

Display Grid tool generates a grid presentation of a surface model. You can create a coloring scheme where the color changes according to the surface elevation.

To display a grid:

1. Select the Display Grid tool.

The Display grid dialog box opens.

2. Fill in settings values in the dialog.

Setting: Effect:Grid size Size for rectangular squares in the grid.Enter origin Allows you to enter an origin point. If this point is inside the

surface area, it will be a corner point for one the grid squares.Create flat shapes If on, each grid square will be drawn flat at the elevation of its

center point.Create filled shapes If on, the grid squares will be filled with color.

Page 95: Terramodeler User Guide

Page 9510 Generating Displays

Display Elevation Texts

Display Elevation Texts tool draws grid spaced labels which display the surface elevation. The decimal point in each text element shows the exact location of the elevation.

To display elevation texts:

1. Select the Display Elevation Texts tool.

The Display elevation texts dialog box opens.

2. Fill in settings values in the dialog.

Clicking on Options push button opens a dialog box for setting various elevation text options.

Setting: Effect:Grid size Distance between elevation text locations.Enter origin Allows you to enter an origin point. If this point is inside the surface

area, one of the elevation texts will be drawn at that location.

Elevation text option: Effect:Font Text font.Size Text size in millimeters on paper.Accuracy Number of decimals in elevation labels.Display plus If on, sign will be displayed for positive elevations.Display minus If on, sign will be displayed for negative elevations.

Page 96: Terramodeler User Guide

Page 9610 Generating Displays

Display Slopes

Display Slopes tool draws grid spaced slope arrows. Each slope arrow shows the direction in which water would run at that location. The arrow length indicates how steep the surface is at that location.

To display slope arrows:

1. Select the Display Slopes tool.

The Display slopes dialog box opens.

2. Fill in settings values in the dialog.

Clicking on Options push button opens a dialog box for setting various slope options.

Setting: Effect:Grid size Distance between elevation text locations.Enter origin Allows you to enter an origin point. If this point is inside

the surface area, one of the slope arrows will be drawn at that location.

Page 97: Terramodeler User Guide

Page 9710 Generating Displays

Slope option: Effect:Place by Placement point for a slope arrow. Can be set to arrow start or arrow

center.Arrowheads Number of arrowheads in a slope arrow:

• One - arrows always have one arrowhead.• One to three - number of arrowheads depends on the slope.

Length Two fields specifying the maximum and the minimum length of a slope arrow.

Slope Slope values at which the arrow length is equal to:- maximum length- two thirds of maximum length- one third of maximum length- minimum length

Write slope label If on, a text label will be placed along a slope arrow.Accuracy Number of decimals in the slope label.

Page 98: Terramodeler User Guide

Page 9810 Generating Displays

Display Shaded Surface

Display Shaded Surface tool draws the surface model colored by elevation and by triangle slope at the same time. Elevation determines the pure color used and triangle slope angle with the sun angle determines the brightness or darkness used.

This coloring effect is achieved by using the HSV color model. Hue component varies according to elevation smoothly between from magenta, red, yellow, green, cyan and blue. Value component varies according to triangle slope to make the color darker or brighter.

The display is drawn as a raster into MicroStation views -- it is not written to the design file.

To display a shaded surface:

1. Select the Display Shaded Surface tool.

This opens the Display Shaded Surface dialog:

2. Fill in settings values and click OK.

This creates a shaded surface display in the selected views.

Setting: Effect:Surface Surface to display.Draw mode Drawing mode:

• Opaque - display hides anything in the background.• Transparent - keeps background visible outside the surface.

Sun azimuth Direction from which the sun is shining. Zero is north.Sun angle Angle indicating how high above the horizon sun is.Color scheme Color scheme to use:

• Default - magenta, red, yellow, green, cyan and blue.• Selected colors - use Define button to create a color scheme.

Color cycles Number of color cycles. Use zero to create a gray scale display showing triangle slope only.

Views Views in which to display the shaded surface.

Page 99: Terramodeler User Guide

Page 9910 Generating Displays

Update Displays

Update Displays tool updates contours, triangles, grid, elevation texts and slope arrows after surfaces have been modified. This tool will update all display methods for all modified surfaces.

Erase Display

Erase Display tool erases previously displayed contours, triangles, grid, elevation texts or slopes. This tools opens a window which will show the status of the five display methods for the selected surface.

In the above example, contours have been displayed in Write to file mode. Triangles, elevation texts or slopes have not been displayed. A grid has been displayed in Display only mode.

To erase one of the display methods:

1. Select the Erase Display tool.2. Select the surface you want to operate on.3. Use Erase contours, Erase triangles, Erase grid, Erase texts or Erase slopes push

button to erase the display.

Page 100: Terramodeler User Guide

Page 10010 Generating Displays

Display Boundary

Display Boundary tool draws all the edges of a surface model. This will help you see the location covered by the surface model.

To display the boundary of a surface model:

1. Select the Display Boundary tool.2. Select the surface you want to display.3. As you move the mouse inside a view, the boundaries of the surface model are highlighted.4. (Optional) Select a view to draw the boundaries permanently and to fit the view by the

surface model.

Setting: Effect:Draw permanently If on, draws the boundaries as permanent elements when you

enter a data click.Fit view by surface If on, fits the view by the surface when you enter a data click.

Page 101: Terramodeler User Guide

Page 10110 Generating Displays

Display Regions tool boxThe tools in the Display Regions tool box are used to generate region based displays from a surface model.

These display methods rely on fairly complex computation which is performed when you run the tool. The created display elements will not be updated if you modify the surface and start the tool.

To: Use:

Display theme polygons Display Themes

Display rain water flow on surface Display Drainage

Display triangles colored by region boundaries Display Region Triangles

Display triangles with raster materials Display Raster Triangles

Page 102: Terramodeler User Guide

Page 10210 Generating Displays

Display ThemesNot Field

Display Themes tool creates colored shape elements to display theme areas in a surface model. Each theme area represent an elevation range, a slope range or a domain which has been assigned a distinctive color.

Theme coloring is very similar to the elements created by Display Triangles tool. Both create elevation based coloring which may look exactly the same when viewed in a top view window. Display Themes tool has the advantage of creating only one element for each color region. This results in a much smaller design file size than would be produced if each triangle would be colored separately.

Display Themes tool creates normal design file elements which are not linked to a surface model. TerraModeler does not know how to update or erase elements created by this tool.

To display theme areas:

1. Select the Display Themes tool.

The Display themes dialog box opens:

2. Fill in settings values in the dialog.3. Click OK.

Selected themes areas are drawn as filled shape elements in the design file.

Setting: Effect:Color by How to divide surface model into the areas:

• Elevation - each theme area represents an elevation range.• Slope - each area represent a slope range.• Domain - create theme polygons from neighbouring triangles

assigned to the same domain.Draw as How to draw the boundary of each theme area:

• 3d shapes - follows surface model elevation.• 2d shapes - draw at zero elevation.

Page 103: Terramodeler User Guide

Page 10310 Generating Displays

Display DrainageNot Field

Display Drainage tool computes and displays how drainage water would run along a surface model. It uses a grid based approach to determine water flow.

It starts by placing an imaginary rain drop at each grid square and then determines where that rain drop would travel. It compares the elevation of the square center point with that of each of the neighbouring squares. If a lower elevation is found, the rain drop travels to the neighbouring square to which the slope is steepest. This process continues until each of the rain drops have reached a pit or a local minimum elevation point.

Display Drainage tool creates normal design file elements which are not linked to a surface model. TerraModeler does not know how to update or erase elements created by this tool.

To display drainage:

1. Select the Display Drainage tool.

The Display drainage dialog box opens:

2. Fill in settings values in the dialog.3. Click OK.

This computes the drainage water flow and displays the results temporarily in all open views. The display will be updated every time MicroStation updates the view contents.

Viewing drainage displayDrainage display shows the paths of rain drops as they would travel according to the grid based calculations. Arrows indicate the flow direction and line weight gives an indication on how many rain drops travel along that path.

Red rectangles mark places where drainage water would gather. As the rain drops will never travel outside the surface model, you may see several rectangles at the outer edges of the model.

Page 104: Terramodeler User Guide

Page 10410 Generating Displays

Drainage display will remain visible as long as you keep the Drainage Detail window open. This window allows you to control the level of detail in the display. When set to High, the drainage display will show each single rain drop. As you move the setting closer to Low, the application will leave out smaller rivers and only display the major paths.

Drainage Detail window lets you view the runoff area of individual squares.

To view runoff areas:

1. Click on Show area.2. As you move the mouse inside a view, the Runoff area field will display the runoff area for

the square under the mouse location. This is the combined surface area of all the squares from which a rain drop will travel to or through the selected square.

3. (Optional) Enter a data click if you want to display the boundaries of the runoff area. These will be drawn as a shape element using active symbology.

Page 105: Terramodeler User Guide

Page 10510 Generating Displays

Display Region TrianglesNot Field

Display Region Triangles tool displays a surface model colored by regions which are defined by closed shape elements. The triangles and the parts of triangles falling inside each region are drawn using the color of the boundary shape. You might use this tool to visualize land use regions, soil type regions or property boundaries.

This display method is always written to the design file.

To display region triangles:

1. Use MicroStation Selection tool to select region boundary shapes.2. Select the Display Region Triangles tool.

This opens the Display Region Triangles dialog:

3. Enter settings values and click OK.

This writes region colored triangles to the design file.

Setting: Effect:Surface Surface model to display.Level Level on which to draw region triangles.Create graphical groups If on, the triangles inside each region will form one graphical

group. Draw triangles outside regions If on, draws triangles which are outside all boundaries using

the given color.

Page 106: Terramodeler User Guide

Page 10610 Generating Displays

Display Raster TrianglesNot Field

Display Raster Triangles tool sets up orthoimages as rendering materials and displays triangles in a manner suitable for rendered images.

MicroStation can create visualizations where raster images are used as surface materials for specific elements. For this to function correctly, one has to build a link between vector elements and the raster images used as surface materials so that the correct raster image is used for each vector element. MicroStation assigns rendering materials to a specific element level and color combination.

Display Raster Triangles tool accomplishes three tasks:

• Creates rendering material definitions for given georeferenced raster images.• Assigns each rendering material to a specific level and color combination.• Draws surface model triangles inside each raster rectangle using the assigned level and color.

To display raster triangles:

1. Select the Display Raster Triangles tool.

This opens the Display Raster Triangles dialog:

2. Enter settings values and click OK.3. (Optional) If you selected GeoTIFF files in the Rasters field, the application will ask you

to select GeoTIFF files to use. Select the desired files and click OK.

This creates the rendering material definitions and draws triangles accordingly. You can now use MicroStation tools to create rendered images.

Setting: Effect:Surface Surface model to display.Rasters Source of raster images:

• GeoTIFF files - you select files to use.• MicroStation references - rasters attached by MicroStation.• TerraPhoto references - rasters attached by TerraPhoto.

Mode Drawing mode:• Preview triangles - display triangles when view updates.• Write triangles to file - write to file.• Write boundaries only - display and write a rectangular

boundary for each raster image. Only the boundary will follow changes in the surface model.

Page 107: Terramodeler User Guide

Page 10710 Generating Displays

Colors Level and color usage:• Automatic - raster images get automatically assigned levels

and colors. Either level or color increases from one raster to the next.

• Manual selection - application builds a list of assignments and lets you modify those.

Level Level to assign to the first raster image.Color Color to assign to the first raster image.Smooth facets for rendering If on, smoothens random point edges between triangles.Material Material file to create.Palette Palette file to create.

Setting: Effect:

Page 108: Terramodeler User Guide

Page 10811 Computing Quantities

11 Computing Quantities

Quantity tool boxThe Quantity tool is used to compute quantities between surface models, to find the intersection between two surfaces or to compute surface model areas.

Compute Quantity is the tool you will use most often. It calculates volumes between two surfaces using the grid method. You can calculate volumes from the entire surface models or you restrict the calculation area by using a fence.

Define Section Templates and Compute Section Quantity tools should be used when you want to calculate volumes along an alignment using the traditional end-area method.

To: Use:

Compute quantities with grid method Compute Quantity

Compute quantities using prismoidal method Compute Prismoidal Quantity

Compute quantities along an alignment Compute Alignment Quantity

Define section templates for trenches Define Section Templates

Compute trench quantities using section templates Compute Section Quantity

Compute tunnel volume from section elements Compute Tunnel Volume

Draw intersection of two surfaces Draw Surface Intersection

Compute surface area Compute Area

Page 109: Terramodeler User Guide

Page 10911 Computing Quantities

Compute Quantity

Compute Quantity tool computes quantities between two surfaces and produce results summing up both cut and fill volumes. The calculation is based on a grid method. You can control the accuracy and speed of calculation by entering the grid size.

You can use a fence or a selected shape element to define the area for calculation.

To compute quantities using grid method:

1. Select the Compute Quantity tool.

The Compute Quantity window opens.

2. Select upper surface and lower surface. Fill in values for calculation settings.3. Click on Calculate push button to start computation.

Setting: Effect:Upper surface Upper surface for calculation.Lower surface Lower surface for calculation.Limit Limiting factor to restrict calculation to occur:

• Area - only where Limit surface is defined.• Lower limit - only above Limit surface.• Upper limit - only below Limit surface.

Limit surface Surface to limit calculation.Inside fence If on, calculation will take place only inside a fence or a selected

shape element.Step Grid size. A small step will produce more accurate results but the

calculation will take longer.Surf cut limit Surface cut limit. Computes cut volume separately for places where

the cut depth is less than this limit. Will also calculate surface cut area for billing purposes.

Display Display method for calculation results:• No display - nothing is drawn.• Draw temporarily - as temporary elements.• Write to file - as permanent elements.

Draw as How to draw results graphically:• Vertical lines - a vertical line at the center of each calculated

column.• Horizontal lines - as horizontal lines.• Filled shapes - shapes filled with color.

Page 110: Terramodeler User Guide

Page 11011 Computing Quantities

Compute Prismoidal QuantityNot Field

Compute Prismoidal Quantity tool computes quantities between two surfaces and produce results summing up both cut and fill volumes. The calculation is based on a prismoidal method: the application compares the triangles of the two surfaces. This is the mathematically accurate method for computing quantities.

You can use a fence or a selected shape element to define the area for calculation.

To compute quantities using prismoidal method:

1. Select the Compute Prismoidal Quantity tool.

The Compute prismoidal quantity window opens.

2. Select upper surface and lower surface. Fill in values for calculation settings.3. Click on Compute push button to start computation.

Setting: Effect:Upper surface Upper surface for calculation.Lower surface Lower surface for calculation.Inside fence If on, calculation will take place only inside a fence or a selected

shape element.Display Display method for calculation results:

• No display - nothing is drawn.• Draw temporarily - as temporary elements.• Write to file - as permanent elements.

Page 111: Terramodeler User Guide

Page 11111 Computing Quantities

Compute Alignment QuantityNot Field

Compute Alignment Quantity tool computes quantities along an alignment element.

To compute quantities along an alignment:

1. Select an alignment element. This element will often be a three dimensional complex chain.2. Select the Compute Alignment Quantity tool.

The Compute alignment quantities window opens:

3. Fill in settings values in the dialog.4. Click the Calculation button to open up a calculation window.

TerraModeler has two tools for computing quantities along an alignment. Compute Alignment Quantity tool calculates volumes using the grid method and requires that you have an existing surface model for the excavation. Compute Section Quantity tool uses section templates to define the excavation and calculates volumes using the end-area method.

Page 112: Terramodeler User Guide

Page 11211 Computing Quantities

Define Section TemplatesNot Field

Define Section Templates tool lets you create a list section templates, which are of definitions of typical cross sections.

TerraModeler's cross sections templates are meant to be used in computing trench excavation quantities. The cross section templates are automatically saved into a file with the same directory and name as the active design file. The file extension is KDB. For example, if the active design file is d:\dgn\proj12.dgn, the section templates will be saved to and loaded from file d:\dgn\proj12.kdb.

To define section templates:

1. Select the Define Section Templates tool.

The Define section templates window opens:

2. Use the Add button to add new template definitions to the list.

Add and Edit buttons open up the Section template window which is used in defining a section template. A small circle in the center of the template picture symbolizes the spot, where an alignment element goes through. Dz specifies an initial depth below that spot.

The shape of the cross section is defined as component lists that extend to the left or to the right from the initial Dz point. A component can be a line or a slope. A line has a vertical and a horizontal distance. A slope has a fixed angle at which it extends until it reaches a specified surface.

Page 113: Terramodeler User Guide

Page 11311 Computing Quantities

Compute Section QuantityNot Field

Compute Section Quantity tool lets you attach templates to station ranges along an alignment element. This template list can be used for computing quantities or for generating an excavation as cross section elements.

To attach templates to an alignment:

1. Select an alignment element. This element will often be a three dimensional complex chain.2. Select the Compute Section Quantity tool.

The Alignment templates window opens:

The template list consists of rows with a station range and a name of a section template. A gap between station ranges of successive rows is interpreted as a linear transformation between two template types. You can skip a station range by selecting template type 'None'. Such a station range will not be included in the calculation.

It is a good idea to save the template list into a file, from which you can retrieve it later. Select Save command from the File menu to create a text file list the templates.

Calculation button closes the list window and opens a calculation window.

Page 114: Terramodeler User Guide

Page 11411 Computing Quantities

Compute Tunnel VolumeNot Field

Compute Tunnel Volume tool computes the volume of a tunnel defined by cross section elements drawn into their true 3D positions. The cross section elements may represent the design of a new tunnel or may be created based on the point cloud from a terrestrial laser scanner.

The cross section elements should be closed vector elements (shapes or complex shapes) drawn perpendicular to an alignment element running along the tunnel. The interval between consecutive cross sections may vary.

To compute tunnel volume:

1. Select the Compute Tunnel Volume tool.

This opens the Compute Tunnel Volume dialog:

The upper list contains a list of alignments defined for the tool. The lower list displays all the cross sections defined for the alignment selected in the upper list.

2. Use Selection tool to select an alignment element running along the tunnel.3. Click Add next to the upper list to add the selected alignment.4. Select the row of the alignment in the upper list box.5. Use Selection tool to select cross section elements for the alignment.6. Click Add next to the lower list to add the selected cross sections.7. Validate the created list of cross sections. Make sure that station positions and surface areas

make sense.8. Click Compute to start the volume computation.

This opens the Report tunnel volume dialog:

9. Enter settings values and click OK.

This computes the volume and displays a report.

Page 115: Terramodeler User Guide

Page 11511 Computing Quantities

Draw Surface Intersection

Draw Surface Intersection calculates the intersection of two surfaces and draws linear elements along the intersection. These linear elements represent a line of intersection along which the two surfaces have exactly the same elevation.

When calculating the line of intersection, TerraModeler compares individual triangles from the two surfaces with each other. If the planes of two triangles intersect each other, the intersection is drawn as a line segment.

This tool will often be used when computing cut and fill volumes as it creates a linear element showing the location where the two surfaces have the same elevation. The line of intersection is the cut and fill boundary of two surfaces!

To draw intersection of two surfaces:

1. Select the Draw Surface Intersection tool.

The Intersect surfaces window opens:

2. Select the two surfaces and click OK.

The line of intersection is drawn using active level and active symbology.

Page 116: Terramodeler User Guide

Page 11611 Computing Quantities

Compute AreaNot Field

Compute Area tool computes the surface area covered by a surface model. It produces results both as a two dimensional area and a three dimensional area value. The three dimensional value is the true surface area of the triangles. The two dimensional value is computed using only x and y coordinates of the triangle vertices.

You can use a fence or a selected shape element to define the area for calculation.

To compute surface area:

1. Select the Compute Area tool.

The Compute Area window opens:

2. Select surface to compute. Fill in values for calculation settings.3. Click on Calculate push button to start computation.

Setting: Effect:Compute Area to compute:

• Whole surface - compute the whole surface model.• Fence contents - compute only inside or outside the fence.• Selected shapes - compute only inside selected linear

elements.Domain If on, compute only triangles assigned to the selected domain.Slope If on, compute only triangles in a give slope range. The lower

and upper limits are given as slope percentages.Paint calculated area If on, draw each calculated triangle as a temporary shape

element.Label 3d area of each shape Can be set only when computing inside selected shapes. If on,

places the computed three dimensional area of each shape inside the shape as a permanent text element.

Page 117: Terramodeler User Guide

Page 11712 Using Domains

12 Using Domains

Domains tool boxThe tools in the Domain tool box are used to define domains, to assign domain information for triangles and to display domains.

You can use domains to separate different types of surface regions from each other. By defining a list of domains, you can create your own classification system for surface regions. This classification system will often be created for visualization purposes. It allows you to distinguish different looking surfaces regions from each other.

Typically, you would create a list of domains for various regions of the ground surface. This list could include such domains as Ground, Grass, Rock, Forest or Road. You assign a unique coloring scheme and a unique level for each domain.

Display Domain Triangles tool draws surface model triangles using coloring schemes and levels assigned for each domain. Having each domain on a unique design file level makes it easy to do further manipulation with MicroStation's tools. Patterning and material assignment capabilities let you:

• Apply area patterning on all triangles belonging to a certain domain. For example, you might want to pattern the area of Grass domain. To do this, use Selection Tool to select all triangles on a certain level and Pattern Area tool to apply the area patterning.

• Assign rendering materials to triangles belonging to a certain domain. To accomplish this, choose Assign Materials from Settings / Rendering menu.

• Drape an aerial photograph on a surface model using material assignment.

To: Use:

Define domains Define Domains

Assign a view for dynamic domain display Domain View

Set domain of triangles inside an area Set Area Domain

Set domain of triangles between two linear elements Set Domain Between Lines

Set domain of triangles Set Triangle Domain

Display triangles using domain coloring Display Domain Triangles

Page 118: Terramodeler User Guide

Page 11812 Using Domains

Define DomainsNot Field

Define Domains tool opens a window for defining domains. The window contains push buttons for adding new domains, for editing a domain and for deleting a domain.

The domain definitions can be saved to a text file or loaded from a previously saved file. When you open a design file, TerraModeler will automatically load the domain definition file that was used last with that design file.

To add a new domain:

1. Click on Add push button.

This opens the Domain dialog box:

2. Fill in setting values for the new domain.

Setting: Effect:Name A free description text.Elevations Surface used when assigning coloring scheme elevation boundaries.Level Level for displaying triangles.

Page 119: Terramodeler User Guide

Page 11912 Using Domains

Domain ViewNot Field

Domain View lets you assign a view which will display domain assignments of the surface model you are working on. Whenever MicroStation redraws the contents of the assigned domain view, TerraModeler will draw surface model triangles as temporary elements using domain colors.

It is a good idea to assign a domain view when you are setting the domains of triangles. It provides the best way of seeing the effects of your work.

To assign a domain view:

1. Select the Domain View tool.

The Domain View window opens:

2. Select View in which you want to see the current domain assignments.

Setting: Effect:Draw only active domain Speeds up view update by drawing only the active domain.

Page 120: Terramodeler User Guide

Page 12012 Using Domains

Set Area DomainNot Field

Set Area Domain tool sets domain of all triangles inside or outside a fence. This tool uses the cent-er point of a triangle when deciding if a triangle is inside or outside the fence.

To set domain of fence contents:

1. Place a fence or select a shape element to define the area.2. Select the Set Area Domain tool.3. Accept fence contents.

The triangles inside or outside the fence will be set to the active domain.

Setting: Effect:Surface Surface model to operate on.Set to Domain to which triangles will be assigned.Fence Fence mode - inside or outside.

Page 121: Terramodeler User Guide

Page 12112 Using Domains

Set Domain Between LinesNot Field

Set Domain Between Lines tool sets domain information of all triangles between two linear elements. This tool is designed to be used with linear elements that are close to parallel to each other.

To set domain between two linear elements:

1. Select the Set Domain Between Lines tool.2. Identify the first linear element.3. Identify the second linear element.4. Accept the two highlighted linear elements.

The triangles between the two linear elements will be set to the active domain. TerraModeler uses the center point of a triangle when deciding if the triangle is between the two linear elements.

Setting: Effect:Surface Surface model to operate on.Set to Domain to which triangles will be assigned.

Page 122: Terramodeler User Guide

Page 12212 Using Domains

Set Triangle DomainNot Field

Set Triangle Domain tool sets domain information of individual triangles.

To set triangle domains one triangle at a time:

1. Select the Set Triangle Domain tool.2. Choose method One at a time in settings window.

As you move the mouse, the shape of the underlying triangle will be dynamically displayed.

3. To set the domain of a triangle, enter a data click.

To set triangle domains by painting:

1. Select the Set Triangle Domain tool.2. Choose method Paint in settings window.3. Enter a data click in the first triangle to set. As you move the mouse after the first data

click, all triangles the mouse passes over will be set to the active domain. To end assignment, enter a second data click.

Page 123: Terramodeler User Guide

Page 12312 Using Domains

Display Domain TrianglesNot Field

Display Domain Triangles tool draws triangles for a surface model using domain coloring schemes and domain levels.

To display domain triangles:

1. Select the Display Domain Triangles tool.

The Display domain triangles dialog box opens:

2. Select Surface and display Mode.3. Choose OK.

This tool is very similar to the Display Triangles tool. In fact, domain triangles is really an alternate way of displaying surface model triangles. You can update domain triangles with the Update Displays tool or erase them with the Erase Display tool.

Page 124: Terramodeler User Guide

Page 12413 Placing Single Display Elements

13 Placing Single Display Elements

Display Single tool boxThe tools in the Display Single tool box are used to place single contours, elevation texts or slope arrows.

To: Use:

Place a contour at a single elevation Place Contour

Place an elevation text Place Elevation Text

Place a slope arrow Place Slope Arrow

Page 125: Terramodeler User Guide

Page 12513 Placing Single Display Elements

Place ContourNot Field

Place Contour tool draws a contour at a single elevation. This tool will calculate the surface elevation under the mouse position and draw a contour for that elevation.

You can place the contour at a precise elevation by locking the elevation to a key-in value.

To place a single contour:

1. Select the Place Contour tool.

As you move the mouse, the application will display a contour running through the mouse location.

2. Enter a point on the contour.

A contour is drawn for the surface elevation at the entered location.

Page 126: Terramodeler User Guide

Page 12613 Placing Single Display Elements

Place Elevation TextNot Field

Place Elevation Text tool places a single elevation text. It shows the surface elevation at a given location. The label will be generated so that the decimal point is located at the given position.

This tool can be used to label the difference between two surfaces as well.

Text font, size and numeric format will be determined by leveling point settings. See Leveling points category on page 36 for more information.

To place a single elevation text:

1. Select the Place Elevation Text tool.2. Choose Elevation option in the Write field.3. Enter a location for the elevation label.

The surface elevation will be drawn at the given location.

To place a surface difference label:

1. Select the Place Elevation Text tool.2. Choose Difference option in the Write field.3. Select upper and lower surfaces.4. Enter a location for the difference label.

The difference between the two surfaces will be drawn at the given location.

Page 127: Terramodeler User Guide

Page 12713 Placing Single Display Elements

Place Slope ArrowNot Field

Place Slope Arrow tool places a single slope arrow. The slope arrow shows the direction in which water would run at a given location. The arrow length indicates how steep the surface is at that location.

To place a single slope arrow:

1. Select the Place Slope Arrow tool.2. Enter a point for the slope arrow location.

A slope arrow will be drawn at the given location.

See Place Slope Arrow / Arrows category on page 33 and Place Slope Arrow / Labels category on page 33 for settings related to the slope arrow.

Page 128: Terramodeler User Guide

Page 12814 Managing Surfaces

14 Managing SurfacesTerraModeler supports an unlimited number of surfaces during the same session. Surfaces tool opens a window where you can manage surfaces. You can open surfaces, save surfaces, rename a surface, view surface data, copy surfaces, import and export data etc.

Opening a surface file

TerraModeler's surface models area saved as binary files on the disk. When you create a new surface model, the application will give it a default file name by combining the design file name with an extension such as T00, T01, T02 and so on. You can change the file name and store it anywhere on your computer's disk drives.

Similarly, you can open previously saved surface models from any directory on your computer.

To open a surface file:

1. From the File menu, choose Open.

The Open surface dialog box opens.

2. Locate and select the file you want to open.3. Click OK.

This reads in the surface model file and adds it to the list of open surfaces.

Saving surfaces

TerraModeler keeps open surface models in the RAM memory of the computer. Modifications to the surface model will affect only this copy until the model is saved to the disk.

You can save surfaces using any one of three options in the File menu of the Surfaces window.

You can save the design file and all surfaces simultaneously. If Immediately Save Design Changes is switched off in the Operation category of user preferences, MicroStation's File menu will have a Save option. Choosing this option will save the design file and all surfaces at the same time if When saving design file setting is on in the Saving Surfaces category of TerraModeler user settings.

To: Choose from the File menu:Save one surface to the disk file assigned to it. Save surfaceSave one surface under a new name. Save AsSave all modified surfaces. Save All

Page 129: Terramodeler User Guide

Page 12914 Managing Surfaces

Opening a reference surface

Sometimes it may be safer to open a surface model as a reference surface. This means that you can view the surface, create displays from it, use it in calculation but you can not make any changes to it. This is very useful if you just want to use a surface file somebody else has created. When you open it as a reference surface, you can not accidentally modify the other person's work.

To open a reference surface:

1. From the File menu, choose Open reference.

The Open reference surface dialog box opens.

2. Locate and select the file you want to open.3. Click OK.

This reads in the surface model file and adds it to the list of open surfaces. You can use the reference surface in all tools which do not modify a surface.

When a reference surface is opened, the application will read a copy of the model into RAM memory. It will use that model during that session and will not detect if somebody else makes changes to the reference model file.

Modifying surface settings

To modify the basic information of a surface, choose Modify settings from Edit menu. This opens a dialog box where you can modify the surface type, enter a new name for the surface or assign a new file name for the surface.

Modifying profile settings

To modify settings controling how surfaces will be drawn in profiles, choose Profile settings from Edit menu. This opens a dialog box where you modify the symbology of a surface when drawn in profiles or cross sections.

Page 130: Terramodeler User Guide

Page 13014 Managing Surfaces

Excluding outer boundaries

To exclude outer boundaries, select a surface in the list and choose Exclude boundaries from Edit menu. This command will exclude narrow, long triangles from the outer edges of a surface model. You can enter the maximum length for outer boundary triangles.

You can use this command several times with different maximum lengths. If the results of the first round do not please you, you can rerun the process with a new maximum length. It is a good idea to check the results with Exclude Triangle tool using Paint method.

Modifying surface elevations

To modify elevation values, select a surface in the list and choose Modify elevations from Edit menu. This command will modify surface elevations using a mathematical equation.

The old elevation of a point can be used in the equation as variable Z. The equation is actually a C language expression. You can use any mathematical functions MDL recognizes. Valid expressions include such functions as sin(a), cos(a), tan(a), exp(a), log(a), log10(a), pow(a,b), sqrt(a), ceil(a), fabs(a) and floor(a) where a and b are floating point values.

Page 131: Terramodeler User Guide

Page 13114 Managing Surfaces

Thinning a surface

To delete unnecessary points, choose Thin from Edit menu. This command will thin a model by removing points too close to another. A point will be removed if it is within both the maximum horizontal distance and the maximum vertical distance from the closest adjacent point.

Deleted points and triangles will remain as inactive data in a surface model. It may be a good idea to compress the surface model after thinning.

Compressing a surface

To minimize the amount of memory a surface model occupies, choose Compress from Edit menu. This command will remove previously deleted points and triangles from a surface model.

TerraModeler stores triangle indexes in display elements such as contour curves, triangle shapes or elevation texts. Compressing a surface model results in all of these indexes being invalid thus making it impossible for the application to update display methods created before compression. If any displays have been created, TerraModeler will ask if those should be erase before compression.

Setting: Effect:XY distance Minimum horizontal distance between to points.Z distance Minimum vertical distance between to points.

Page 132: Terramodeler User Guide

Page 13214 Managing Surfaces

Deleting a surface

To delete a surface, select the surface in the list and choose Delete surface from Edit menu. This deletes a surface from the memory and deletes the related disk file.

Viewing surface statistics

To view surface statistics, select a surface in the list and choose View statistics from Utility menu. This opens a dialog box displaying surfaces statistics. Its shows the number of points, the number of triangles and the coordinate ranges in the model.

Copying surfaces

To create a copy of a surface, choose Copy surface from Utility menu. This command will create an identical copy of an existing surface.

Page 133: Terramodeler User Guide

Page 13314 Managing Surfaces

Merging surfaces

To merge two surfaces, choose Merge surfaces from Utility menu. This command will merge two surfaces creating a combined surface.

This command is often used to create a surface representing the future ground by combining a design surface and an existing ground surface.

The design surface, such as an excavation or a road, is set to be the primary surface. The merging operation will copy all the information from the primary surface to the new surface.

The secondary surface, existing ground, will be used to enlarge the area of the new surface. The points from the secondary surface will be used only if they are located outside the primary surface.

Subtracting surfaces

To subtract two surfaces, choose Subtract surfaces from Utility menu. This command will create a third surface by calculating the elevation difference of all the points in two existing model.

Setting: Effect:Primary All the information from the primary surface is copied to the new

surface.Secondary Information from the second surface will be used only outside the

primary surface. Use Which surface to use in places where both surfaces are defined:

• Primary surface - primary surface.• Highest surface - higher of the two surfaces.• Lowest surface - lower of the two surfaces.

Page 134: Terramodeler User Guide

Page 13414 Managing Surfaces

Creating a statistical grid modelNot Field

To create a statistical grid model, choose Statistical model from Utility menu. This command will create a new surface by calculating statistical elevations based on an existing surface.

The new surface will be a grid type surface. It will consist of evenly spaced points at constants intervals in both X and Y directions. These points will have an elevation value that has been mathematically calculated from the existing surface. When calculating an elevation for a grid point, the application will search for points in the existing model within a given radius from the grid point location. The new elevation can represent, for example, the average elevation of the points found.

Setting: Effect:Surface Surface to create.From Existing surface from which to calculate values from.Expand to rectangle If on, expand the new surface to be a rectangular area

enclosing all of the points in the original surface. Fence contents If on, use only those points from the original surface that

reside in fence contents. X step X direction interval between points in the new surface.Y step Y direction interval between points in the new surface.Enter origin If on, you can enter an origin for the new grid points. From area Shape of calculation area around a grid point:

• Circle - circle with a given radius.• Square - radius is half the side length.

Radius Size of calculation area around a grid point.Z scale Constant scaling for the new elevation values.New Z Mathematical expression to calculate for each grid point.

This may include variables:• Count - the number of points inside area.• Average - the average of elevations.• Sum - the sum of elevations.• Gravsum - gravitational sum of elevations.• Minimum - smallest elevation.• Maximum - highest elevation.

Page 135: Terramodeler User Guide

Page 13515 Importing and Exporting Data

15 Importing and Exporting DataTerraModeler can import data from a variety of sources and output data to many file formats. Most of the import and export functions can be found in the File pulldown menu of the Surfaces windows.

Importing triangles

To import a triangulated surface model created by another application, choose Triangles from Import menu. This command will read in triangle elements from a given level and create an identical surface model.

Importing XYZ text file points

To import points from a text file, choose Xyz file from Import menu. You can use this command to create a new model or to add points to an existing model.

TerraModeler requires that one row in a text file represents one point. E, N and Z coordinates have to be stored as fields separated by white space, commas or semicolons. The text file may have fields that will be ignored.

When you choose a file to import, TerraModeler reads in 25 first rows and opens File format for import dialog box. You can select the fields where E, N and Z coordinates can be found. Use as option button defines whether to use the points as random or as breakline points.

For data type: Use for import: Use for export:Graphical elements Triangulate Elements tool Export / Graphical elementsTriangles in design file Import / Triangles Display Triangles toolXyz text file Import / Xyz file Export / Xyz text fileSiteWorks surface model Open surface -Intergraph grid file (GRD) Import / Lattice file Export / Lattice fileDisimp grid file Import / Lattice file Export / Lattice fileOrdnance Survey NTF grid file Import / Lattice file -Raw binary grid file - Export / Lattice fileElevation colored raster image - Export / Raster image

Page 136: Terramodeler User Guide

Page 13615 Importing and Exporting Data

Exporting text files

To create a text file listing from surface model points, select a surface in the list and choose Xyz text file from Export menu. The Export XYZ dialog box opens.

When listing points to a plain XYZ text file, TerraModeler will output random points to one file and breakline points to another. When listing points to a survey file format, TerraModeler will identify random and breakline points by a feature code.

Exporting graphical elements

To draw surface model points into the design file, choose Graphical elements from Export menu. This command will draw different types of surface model points on given levels. Random and inferred points can be drawn as leveling text elements, as zero length lines or as X character text elements. Breaklines, contours, hole boundaries and outer boundaries will be drawn as linear elements.

This command may prove useful if you want to modify the surface in a manner for which TerraModeler does not have any suitable tools.

For example, TerraModeler does not have a tool for shifting a group of surface model points horizontally. You can accomplish this by:

1. Export the surface model points into the design file as graphical elements.2. Switch all other levels off in a view.3. Move the graphical elements using MicroStation's fence tools.4. Delete the old surface model.5. Use Triangulate View tool to recreate the surface model from the shifted graphical

elements.

Page 137: Terramodeler User Guide

Page 13715 Importing and Exporting Data

Importing lattice files

TerraModeler can import lattice files and create a triangulated surface model using the grid based points. To import a lattice file, select Lattice file from Import menu.

A triangulated surface model takes up a lot more memory than a lattice model, if all the lattice points are used in triangulation. The triangulated surface can upto 36 times bigger than the original lattice file. Therefore, it is often necessary to leave out some of the lattice points. TerraModeler is capable of leaving out less relevant points and still build a triangle network which is always within a user given tolerance of original grid points.

Exporting raster images

When creating elevation based coloring using Display Triangles or Display Grid tools, you are limited to the 256 colors in MicroStation's color table. As an alternative to this, TerraModeler offers you the capability to export a true color raster image where the color changes according to elevation. This can produce very smooth color changes.

To export a raster image:

1. Select Raster image from Export menu.

This opens the Export Raster Image dialog:

2. Enter setting values and click OK.

TerraModeler computes raster pixel colors and then opens a dialog for selecting output file name.

3. Enter a name for the output file and click OK.

A raster image is generated in Windows bitmap format (BMP).

Setting: Effect:Colors Color depth of the raster image:

• 24 Bit Color - true color image.• 256 Colors - 256 colors.• Grey scale - 8 bit grey scale.

Step Size of each pixel.Scheme Type of coloring scheme:

• Cold to hot - varies from blue in low elevation to red in high elevation.• Hot to cold - varies from red in high elevation to blue in low elevation.• Selected colors - you can define the coloring scheme.

Degree Determines how the color changes in Cold to hot and Hot to cold schemes are computed

Page 138: Terramodeler User Guide

Page 13816 Lattice Database

16 Lattice DatabaseNot Field

The lattice database is a collection of grid based files placed in the same directory. These lattice files are typically produced by a national land survey organization which produces elevation data covering the whole country. This type of data provides an inexpensive way to create a rough surface model of large areas or a quick way to derive a rough elevation value for any location in the country.

TerraModeler offers some dedicated tools which can extract elevation values from a collection of lattice files. All of these tools search for lattice files in a directory that is specified in Settings tool's Lattice database category. All of the tools require that the design file uses the same coordinate system as the lattice files were created with.

Supported file formats include:

• Disimp - used by Finnish National Land Survey• Ordnance Survey NTF - used by UK Ordnance Survey• Intergraph GRD - have to be orthonormal

Support for more file formats may be added later on.

Drawing lattice database boundaries

Before using any other tools, you should normally check what areas are covered by the lattice database files. To do this, select Draw boundaries in the Lattice database submenu of Utilities pulldown menu in the Surfaces window. This option will scan through the lattice database and draw a rectangle in the design file showing the area covered by each file. The name of each lattice file will be placed as text element at the center of the corresponding rectangle.

Viewing lattice database elevation

View Elevation tool can display lattice database elevation under the mouse. In addition to triangulated surfaces, Surface option button lets you also choose Lattice database as the surface to view. As you move the mouse, TerraModeler will determine the correct lattice file and locate the elevation value closest to the mouse location.

Additionally, you can use the Point on surface lock to place elements on the elevation of the lattice database. This offers an easy way to place an element on ground elevation anywhere in the country, provided that you have the elevation data available.

Page 139: Terramodeler User Guide

Page 13916 Lattice Database

Triangulating lattice database points

Surfaces window offers a menu option for triangulating a fenced area of lattice database points. The fenced area may overlap several individual lattice files. A triangulated surface model makes it possible to insert new elevation data as random points or as breaklines.

A triangulated surface model takes up a lot more memory than a lattice model, if all the lattice points are used in triangulation. The triangulated surface can upto 36 times bigger than the original lattice file. Therefore, it is often necessary to leave out some of the lattice points. TerraModeler is capable of leaving out less relevant points and still build a triangle network which is always within a user given tolerance of original grid points.

To triangulate lattice database points:

1. Place a rectangular fence.2. Select Import fence contents from Lattice database submenu of Utilities pulldown menu.

This opens the Import Fence Contents dialog:

3. Enter settings values and click OK.

This opens the Surface settings dialog.

4. Enter a name for the new surface and click OK.

The application processes all lattice files overlapping the fence and creates a triangulated surface model from the points.

Page 140: Terramodeler User Guide

Page 14017 Flood Mapping

17 Flood Mapping

Flood Mapping tool boxThe Flood Mapping tool box is used to generate validated river cross sections, output those to calculation software and display results.

To: Use:

Import surveyed river sections Import River Sections

Modify or extend river sections Edit River Sections

Output sections to calculation software Export River Sections

Import resulting water levels Input Water Elevations

Display the area covered by sections Draw River Section Boundaries

Display flood extents Display Flood

Page 141: Terramodeler User Guide

Page 14117 Flood Mapping

Import River SectionsNot Field

Import River Sections tool reads in cross section survey files and draws these in the design file. The input survey files have to be in Eeby format.

TerraModeler will first display the imported river sections in temporary mode and will open the River sections window which offers a number of tools for validating and modifying section information.

To import river sections:

1. Select the Import River Sections tool.

This opens a dialog box which allows you to select one or several files to process.

2. Add the desired file(s) to the list of files to process and click Done.

TerraModeler reads in the selected files, draws the cross sections in temporary mode and opens the River cross sections window:

3. Validate and modify the cross section information using the tools in the River cross sections window.

When you close the window, TerraModeler will ask you if you want to write the cross sections permanently to the design file.

Moving river sections to correct locationImported survey data may contain locational errors. To correct those errors, you can move the origin of a river section or modify the direction in which it is drawn.

To move the origin of a river section:

1. Select a river section in the list box.2. Choose Move xy origin from Section menu.3. Enter a new origin point for the river section.

To modify river section direction:

1. Select a river section in the list box.2. Choose Edit from Section menu.

Page 142: Terramodeler User Guide

Page 14217 Flood Mapping

This opens the River cross section dialog:

3. Enter a new bearing angle and click OK.

The river section is drawn in the new direction starting from its origin point.

Generating a section view for a river section When validating and positioning a river section, it may be useful to see a three dimensional section view from the cross section location.

To generate a river section view:

1. Select a river section in the list box.2. Click View section button.3. Select a view.

TerraModeler rotates the view and adjust the display depth so the river section is visible in the view.

Extending river sectionsSurveyed river sections can be extended using a surface model of the ground. This will add points to either end of the section so that it accurately follows the ground surface elevations.

To extend a river section:

1. Select a river section in the list box.2. Choose Extend from Section menu.3. Enter a new end point for the river section.

You can continue from step 3 or click reset when you are done.

Page 143: Terramodeler User Guide

Page 14317 Flood Mapping

Edit River SectionsNot Field

Edit River Sections tool lets you modify river sections which have been drawn to the design file.

To modify a single river section:

1. Select the Edit River Sections tool.2. Identify the river section to edit.

This opens the River cross sections window displaying the selected section.

3. Modify the cross section information using the tools in the window.4. Close the window when done.

To modify several river sections:

1. Place a fence around the river sections you want to modify.2. Select the Edit River Sections tool.3. Accept fence contents.

This opens the River cross sections window displaying the sections found within the fence.

4. Modify the cross sections using the tools in the window.5. Close the window when done.

Export River SectionsNot Field

Export River Sections tool outputs extended river sections to Onda. You can output all of the cross sections drawn to the design file or use a fence to output only certain cross sections.

To output river sections to Onda:

1. (Optional) Place a fence around the river sections you want to output.2. Select the Export River Sections tool.3. (Optional) Accept fence contents.

This opens a dialog for selecting a name for the output file.

4. Enter a name for the output file.5. Click OK.

Page 144: Terramodeler User Guide

Page 14417 Flood Mapping

Input Water ElevationsNot Field

Input Water Elevations tool reads water elevation data as produced by Onda. This data basically contains elevation values for the cross sections used in the calculation. TerraModeler will try to find a matching cross section from the design file for each of the elevation values and draws a line string along the section at the computed elevation. These line strings can be used to create a surface model of the flood water elevation.

To import water elevation data from Onda:

1. Set active level and color to be unique for the flood model in question.2. (Optional) Place a fence around the river sections you want to input.3. Select the Input Water Elevations tool.4. (Optional) Accept fence contents.

This opens a dialog for selecting the input file.

5. Select the input file and click OK.

TerraModeler reads in the elevation data and draws line strings along the matched river sections using active level and symbology settings.

You can use Triangulate View, Triangulate Elements or Insert Random Elements tool to create a surface model of the flood water elevation.

Default exclusion logic does not work very well when creating a surface model from river sections. The Exclude outer boundaries field in the Triangulate surface dialog controls exclusion logic. For river sections, you should select By key-in length option and enter a Maximum length value such as 300.0 meters.

Draw River Section BoundariesNot Field

Draw River Section Boundaries tool generates a shape element around the area covered by river sections.

Page 145: Terramodeler User Guide

Page 14517 Flood Mapping

Display FloodNot Field

Display Flood tool computes and displays the extent of flooding. It can compare several flood models (5 year, 10 year, 25 year, …) with the ground surface model and display each using a specific color.

The calculation is based on a grid method. You can control the accuracy and speed of calculation by entering the grid size.

To display flood extents:

1. Place a fence around the area to compute.2. Select the Display Flood tool.

This opens the Display flood window:

3. Select ground surface model in the Surface option button.4. A list box display all other surface models and their current drawing settings. Go through

these surface and select a unique color for each which should be included in the computation. Set Draw toggle off for all surfaces which should be ignored.

5. Click OK.

TerraModeler will compare each of the selected flood surfaces with the ground surface model and color the calculation grid accordingly.

Page 146: Terramodeler User Guide

Page 14618 Lifting 2D Contours

18 Lifting 2D Contours

2D Contours tool boxThe 2D Contours tool box is used to lift 2D contour elements into 3D or to validate elevations of linear elements.

To: Use:

Lift 2D contours using contour labeling Lift 2D Contours

Set elevation of a contour element Set Contour Elevation

Validate elevations of linear elements Check Linear Elevations

Page 147: Terramodeler User Guide

Page 14718 Lifting 2D Contours

Lift 2D Contours

Lift 2D Contours tool converts two dimensional contour elements into a three dimensional design file. The original elements may reside in two dimensional reference files.

This tool scans the specified levels in either the active design file or in attached reference files for text elements and for linear elements. It tries to find a matching contour elevation label for each contour chain. A match is found, if the start or the end of a contour chain is close to an elevation label.

To lift 2D contours into 3D:

1. Select the Lift 2D Contours tool.

This opens the Lift 2D Contours dialog:

2. Click Settings to define symbology for lifted contours.3. Click OK to close Contour symbology dialog.4. Fill in settings values in the dialog and click OK.

TerraModeler scans the given levels in the specified files for text and linear elements. These will be drawn in the active design file using contour symbology.

Setting: Effect:File Files from which to search for text and linear elements:

• Active design file - scan the active design file.• Reference files - scan all reference files with Locate on.

Levels List of levels from which to scan for elements. For example:• 61 - level 61.• 15,21-24 - levels 15, 21, 22, 23 and 24.

Labeled contours If on, lift contours for which a matching label has been found. Unlabeled contours If on, copy linear elements for which no elevation value was found.

These will be copied to zero elevation.Labels If on, you can enter an origin for the new grid points. Set symbology If on, modify the symbology of elements according to settings

defined using Settings pushbutton.

Page 148: Terramodeler User Guide

Page 14818 Lifting 2D Contours

Set Contour Elevation

Set Contour Elevation tool lifts linear elements to a given elevation one at a time. It is designed to be used for lifting two dimensional contour elements onto correct elevation.

To set elevation of contour element(s):

1. Select the Set Contour Elevation tool.2. Enter elevation value in Elevation field.3. Identify the element to lift.4. Accept the element.

The element is lifted to the given elevation. You can continue to step 2 or 3.

Setting: Effect:Find connected elements If on, the application will try to find linear elements which

connect exactly to the start or the end point of the identified elements. These connected elements will be lifted as well.

Set level and symbology If on, modify the symbology of elements according to settings defined using Settings pushbutton.

Page 149: Terramodeler User Guide

Page 14918 Lifting 2D Contours

Check Linear Elevations

Check Linear Elevations tool validates the elevations of linear elements within fence contents. It will mark invalid elements by modifying level and color of the elements.

To check elevations of linear elements:

1. Place a fence to define the area to process.2. Select the Check Linear Elevations tool.

This opens the Check Linear Elevations dialog:

3. Enter settings values and click OK.

This will process fence contents and modify all elements which exceed the given criteria.

Setting: Effect:Mark elements How to determine invalid elements:

• Above elevation - mark all elements which extend above a given elevation.

• Below elevation - mark all elements which extend below a given elevation.

• With non-uniform elevations - mark all elements which have vertices at more than one elevation.

Elevation List of levels from which to scan for elements. For example:• 61 - level 61.• 15,21-24 - levels 15, 21, 22, 23 and 24.

Level If on, move invalid elements to the given level. Color If on, set invalid elements to the given color.

Page 150: Terramodeler User Guide

Page 15019 Public Functions

19 Public FunctionsTerraModeler has a number of functions that can be called by other MDL applications. A third party can write an application which obtains elevation values from a TerraModeler surface model or which drives operations that TerraModeler performs.

TerraModeler publishes public functions with mdlCExpression_symbolPublish(). This makes the functions available for any MDL applications.

Many Terra applications use this method of interaction between different modules. For example, TerraStreet calls FnSurfaceZ() when labeling a profile with surface elevations.

Page 151: Terramodeler User Guide

Page 15119 Public Functions

Calling Method

The functions can be called with mdlCExpression_ getValue(). The code example below illustrates the method:

void Example( void){

char Expr[120] ;char Name[32] ;int Ret ;

if (TmCall( &Ret, "FnSurfaceCount()") > 0)mdlOutput_printf( MSG_PROMPT, “%d surfaces”, Ret) ;

sprintf( Expr, "FnSurfaceName(%ld,%d)", (long) Name, 0) ;if (TmCall( &Ret, Expr) > 0)

if (Ret)mdlOutput_printf( MSG_MESSAGE, “Name is %s”, Name) ;

}

/*-------------------------------------------------------------------Call a function in TerraModeler. Store return value in *Ret.

Return 1 if successful.Return 0 if TMODEL not found.Return -1 if failed for another reason.

*/

int TmCall( int *Ret, const char *Expr){

CExprValue Val ;CExprResult Res ;int Ok ;

if (!LoadApp( "TMODEL")) return (0) ;

Ok = mdlCExpression_getValue( &Val, &Res, Expr, VISIBILITY_CALCULATOR);if (Ok != SUCCESS) return (-1) ;if (Ret)

*Ret = (int) Val.val.valLong ;

return (1) ;}

/*-------------------------------------------------------------------Load MDL application with Name (such as “TMODEL”).

Return 1 if succssful.Return 0 if application not found.

*/

int LoadApp( char *Name){

void *Ptr ;int Ok ;

/* Is application already loaded? */

Ptr = mdlSystem_findMdlDesc( Name) ;if (Ptr) return (1) ;

/* Not loaded, attempt loading */

Ok = mdlSystem_loadMdlProgram( Name, NULL, "") ;if (Ok == SUCCESS) return (1) ;

return (0) ;}

Page 152: Terramodeler User Guide

Page 15219 Public Functions

Function Prototypes/*-------------------------------------------------------------------

Return number of triangulated surface models.*/

int FnSurfaceCount( void) ;

/*-------------------------------------------------------------------Fill structure with information about triangulated surfaces.S points to a table of SurfInfo structures. Calling applicationshould have allocated it to hold at least FnSurfaceCount()items.

Return number of items filled in the table (=FnSurfaceCount()).*/

int FnSurfaceList( SurfInfo *S) ;

typedef struct {int Id ; /* Id */int DrawInProfile ; /* Draw in profiles? */char Name[32] ; /* Name */int Type ; /* Type id */char Reserved[76] ; /* For future development - ignore now */

} SurfInfo ;

/*-------------------------------------------------------------------Copy name of surface with id I into Str.

Return 1 if id I was valid.Return 0 if id was invalid.

*/

int FnSurfaceName( char *Str, int I) ;

/*-------------------------------------------------------------------Return profile color of surface with id I.Return 0 if id was invalid.

*/

int FnSurfaceColor( int I) ;

/*-------------------------------------------------------------------Compute bounding cube for surface with id I.Mn is set to be the minimum x,y,z of the surface model.Mx is set to be the maximum x,y,z of the surface model.

Return 1 if successful.Return 0 if failed.

*/

int FnSurfaceMinMax( Dpoint3d *Mn, Dpoint3d *Mx, int I) ;

Page 153: Terramodeler User Guide

Page 15319 Public Functions

/*-------------------------------------------------------------------Calculate elevation Pt->z at location Pt->x,Pt->y from surfacewith id I.

The elevation can not be calculated if:- the surface id is invalid- the surface is empty- the point is outside surface- the point is inside an excluded triangle

Return 1 if successful.Return 0 if the elevation could not be calculated.

*/

int FnSurfaceZ( Dpoint3d *Pt, int I) ;

/*-------------------------------------------------------------------Calculate elevation for an array of x,y points from surfacewith id I.

Tbl is a pointer to an array of x,y points.Cnt is the number of points in the array.

The calling application should initialize the z valuesof the points to an invalid value such as -999999.If the elevation of a x,y point can not be calculated,the z value will remain unchanged.

Return 1 if successful.Return 0 if the surface is invalid.

*/

int FnSurfaceArrayZ( Dpoint3d *Tbl, int Cnt, int I) ;

/*-------------------------------------------------------------------Drape an array of points over surface model with id I.

Tbl is a pointer to an array of x,y points.Cnt is the number of points in the array.I is the id of the surface model.

After the routine:*Pnt points to a table of generated points.*Val points to a table of characters which indicate

what point intervals are valid. Val[0] indicatesif point interval Pnt[0] - Pnt[1] is valid.

Return the number of points generated.Return 0 if failed.

*/

int FnDrapeArray( Dpoint3d **Pnt, char **Val, const Dpoint3d *Tbl, int Cnt, int I) ;

/*-------------------------------------------------------------------Free the results from a call to FnDrapeArray().

Pnt points to a table of generated points.Val points to a table of characters.

Return 0.*/

int FnDrapeFree( Dpoint3d *Pnt, char *Val) ;

Page 154: Terramodeler User Guide

Page 15419 Public Functions

/*-------------------------------------------------------------------Drape descriptor Dp over surface model with id I.FileNr is the file number of descriptor Dp.Method determines what is generated for places wherethe original descriptor is outside the surface.If Method is0 : Outside part will remain unchanged.1 : Outside part will be drawn with active symbology.2 : Outside part will not be drawn, thus resulting in a gap.

Create new descriptor as *Pp (Dp is not changed in the process).

Return 1 if successful.Return 0 if failed.

*/int FnDrapeDscr( MSElementDescr **Pp, MSElementDescr *Dp,

int FileNr, int Method, int I) ;

/*-------------------------------------------------------------------Has surface with id I been triangulated?

*/

int FnModelExists( int I) ;

/*-------------------------------------------------------------------Fill an option button with surface names. This function letsan external application create an option button for selectinga surface.

If P == 0, list all surfaces.If P == 1, list all triangulated surfaces.

*/

int FnSurfaceOption( RawItemHdr *Raw, int P) ;

/*-------------------------------------------------------------------Fill option button with surface type names.

Return 1 always.*/

int FnSurfTypeOption( RawHdr *Raw) ;

/*-------------------------------------------------------------------Create a new empty surface model into which points can be addedusing FnAddPoints() or FnInsertPoints().

Type is the surface type as defined in Modeler user settings.Calling application should use zero (normally ground) or letthe user select type from an option button (use FnSurfTypeOption).

Name is an optional name for the new surface. If Name == NULL,surface type name is retrieved for the surface model name.

Return ID of the new surface (0,1,...).Return -1 if failed (out of memory).

*/

int FnCreateSurface( int Type, char *Name) ;

Page 155: Terramodeler User Guide

Page 15519 Public Functions

/*-------------------------------------------------------------------Add random points to surface with id I. This routine canbe used to insert points to an existing surface or to createa new surface. TerraModeler will always triangulatethe surface during this function.

Tbl points to an array of Cnt points.Cnt is the number of points in Tbl.If AskSet is true, ask triangulation settings.

In a result of this call,

Return true if points were inserted.Return 0 if unsuccessful.

*/

int FnInsertPoints( int I, int AskSet, Dpoint3d *Tbl, int Cnt) ;

/*-------------------------------------------------------------------Add points of type Type to surface with id I.TerraModeler will add these points to its point listbut will not immediately triangulate the new points.

This routine can be used to insert points to an existingsurface or to create a new surface.

Tbl points to an array of Cnt points.Cnt is the number of points in Tbl.Type is the point type:1 = random2 = breakline3 = contour

10 = external 3D boundary11 = external 2D boundary20 = internal 3D boundary21 = internal 2D boundary

Return true if points were inserted.Return 0 if unsuccessful.

*/

int FnAddPoints( int I, Dpoint3d *Tbl, int Cnt, int Type) ;

/*-------------------------------------------------------------------Triangulate surface with id I. The calling application willtypically call this function after calling FnAddPoints()a number of times.

If AskSet is true, ask triangulation settings.

Return 1 if triangulation was completed.Return 0 if unsuccessful.

*/

int FnAddDone( int I, int AskSet) ;

/*-------------------------------------------------------------------Retriangulate surface with id I after calls to FnAddPoints().

Return 1 if triangulation was completed.Return 0 if unsuccessful.

*/

int FnAddRetriangulate( int I) ;

Page 156: Terramodeler User Guide

Page 15619 Public Functions

/*-------------------------------------------------------------------Add a linear element representing surface elevations to aprofile descriptor. This routine can be called by anapplication creating a profile in which surface(s) aredrawn as line string type elements.

This routine uses surface’s profile color and line stylewhen adding elements to the descriptor.

Dp is descriptor where elements will be added.L defines the profile settings and the alignment.

Return 1 if drawn.Return 0 if failed.Return -1 if no need to draw:

- surface is empty or- ‘Draw in profile’ setting is off

*/

int FnProfileDscr( MSElementDescr *Dp, FnProf *L) ;

typedef struct {int SurfId ; /* Surface id or -3=all surfaces */int Lvl ; /* Level to draw on */Dscr *Align ; /* 2D alignment */double AlignLen ; /* Length of the alignment */double ExaggZ ; /* Horizontal scale / Vertical */double RangeStart; /* Elevation range from */double RangeEnd ; /* Elevation range to */Dpoint3d Org ; /* Lower left corner of range*/int Scale ; /* Horizontal scale */

} FnProf ;

/*-------------------------------------------------------------------Find out grid elevation at location Pt->x, Pt->y.This function searches the lattice database for a gridfile which covers the given location and reads the closestelevation value.

Return 1 if Pt->z was successfully set.Return 0 if point was outside grid data files.Return -1 if no grid files were found.

*/

int FnGridZ( Dpoint3d *Pt) ;

Page 157: Terramodeler User Guide

Page 15719 Public Functions

/*-------------------------------------------------------------------Compute lattice elevation values from surface SurfId.The calling application should:1. Fill in values in TinLtc structure2. If integer (uor) elevation values are needed:

* allocate memory as T->ElevInt (CntX*CntY*sizeof(int))* initialize every value to an invalid value (such as 0x80000000)

3. If floating point (master unit (m))) elevation values are needed:* allocate memory as T->ElevInt (CntX*CntY*sizeof(double))* initialize every value to an invalid value (such as -999999.0)

4. If elevations from excluded triangles are needed:* allocate memory as T->Valid (CntX*CntY*sizeof(char))

This routine sets only those elevation values for which an elevationfrom SurfId can be calculated. Lattice points outside the surface willnot be affected.

If the calling application provider T->Valid as non-NULL, TerraModelerwill calculate elevations from excluded triangles as well and fillin T->Valid[] to indicate which point are:

0 outside surface1 inside an excluded triangle2 inside a valid triangle

Return 1 on success.Return 0 if SurfId is invalid.

*/

int FnComputeTinLattice( TinLtc *T, int SurfId) ;

typedef struct {Dpoint3d Org ; /* Origin point (lower left) */double StpX ; /* X interval */double StpY ; /* Y interval */int CntX ; /* Column count */int CntY ; /* Row count */int *ElevInt ; /* Elevation as integer values (uor) */double *ElevDbl ; /* Elevation as double values (master units) */char *Valid ; /* Validity information */

} TinLtc ;

/*-------------------------------------------------------------------Calculate elevation Pt->z at location Pt->x,Pt->y froma surface of type Type. This routine will loop thru allsurfaces to find one of matching type where location Ptis valid.

Return 1 if successful.Return 0 if the elevation could not be calculated.

*/

int FnSurfaceTypeZ( Dpoint3d *P, int Type) ;

Page 158: Terramodeler User Guide

Page 15819 Public Functions

/*-------------------------------------------------------------------Compute elevation for each P->x,P->y point in table Tbl.Use first triangulated surface of type Type to computethe elevations.

Tbl is a pointer to an array of x,y points.Cnt is the number of points in the array.

The calling application should initialize the z valuesof the points to an invalid value such as -999999.If the elevation of a x,y point can not be calculated,the z value will remain unchanged.

Return 1 if a surface of Type exists.Return 0 if no surface.

*/

int FnSurfTypeArrayZ( Dpoint3d *Tbl, int Cnt, int Type) ;

/*-------------------------------------------------------------------Open window for specifying how to display surfaces in profiles.

Return 0 always.*/

int FnAskProfSurfaces( void) ;

/*-------------------------------------------------------------------Compute slope end points starting from master alignment pointsVrt[] using normal direction as defined by Nrm[].x and Nrm[].y.Find solution from first surface of type Typ where Prj[] isvalid.

Make sure slope end points are at least Dst from master points.Store end points in Vrt[]. If slope can not be computed, computevertex by offseting master point by at least Dst.

Return number of successfully computed points.Return -1 if no surface of type Typ.

*/int FnSlopeVertices( Dp3d *Vrt, Dp3d *Nrm, int Cnt, double Rup,

double Rdn, int Type, double Dst) ;

/*-------------------------------------------------------------------Display shaded surface of surface Idv in views Vwb.Vwb specifies views as a bit mask (bit 0 for view 1, ...).

This routine does not update views.

Return 1 on success.Return 0 if failed (I out of range).

*/

int FnDisplayShaded( int Idv, int Vwb) ;

Page 159: Terramodeler User Guide

Page 15919 Public Functions

/*-------------------------------------------------------------------Display contours for surface with id SurfId.Ap points to contour action settings.Sp points to contour settings. Sp may be NULL.Lp points to label settings. Lp may be NULL.Tp points to tick settings. Tp may be NULL.

Return 1 on success.Return 0 if failed (no surface or invalid Ap).

*/

int FnDisplayContours( int SurfId, ContAct *Ap, ContSet *Sp, ContLbl *Lp, ContTck *Tp);

// Contour action for FnDisplayContours()

typedef struct {int Mode ; // 0=display only, 1=write to file, 2=previewint Type ; // 0=curves, 1=line strings, 2=soft line stringsint DrawTicks ; // Draw contour ticks?int DrawLabels; // Draw contour labels?int Draw1 ; // Draw minor contours?int Draw2 ; // Draw basic contours?int Draw3 ; // Draw major contours?int Reserved1 ;double Every1 ; // Minor contour interval (master unit)double Every2 ; // Basic contour interval (master unit)double Every3 ; // Major contour interval (master unit)char Reserved2[80];

} ContAct ;

// Contour settings for FnDisplayContours()

typedef struct {int ColorBy ; // Color by 0=contour type, 1=elevationint Lvl1 ; // Minor contour levelint Lvl2 ; // Basic contour levelint Lvl3 ; // Major contour levelint Clr1 ; // Minor contour color 0-255int Clr2 ; // Basic contour color 0-255int Clr3 ; // Major contour color 0-255int Sty1 ; // Minor contour styleint Sty2 ; // Basic contour styleint Sty3 ; // Major contour styleint Wgt1 ; // Minor contour weightint Wgt2 ; // Basic contour weightint Wgt3 ; // Major contour weightint Reserved1 ;int ClrCnt ; // Number of scheme colorsint Clrs[127]; // Scheme colors max 127long ClrElev[128]; // Color elevationschar ClrFix[128]; // Fixed flags for elevationsint Domains ; // 0=all domains, 1=only selected domainsint ElevLimit ; // 0=all elevations, 1=only ElevMin-ElevMaxdouble ElevMin ; // - lowest elevation to drawdouble ElevMax ; // - highest elevation to drawint Smoothing ; // Smoothen contours?int AreaSkip ; // Skip small closed contours?double AreaMin ; // - min area (sq master units)int Complex ; // Build complex chains?int Thin ; // Thin contours?double ThinDst ; // - distance (master units)double ThinDev ; // - deviation (master units)double ThinAng ; // - turn angle (degrees)char Reserved2[80] ;

} ContSet ;

Page 160: Terramodeler User Guide

Page 16019 Public Functions

// Contour label settings for FnDisplayContours()

typedef struct {int LabelsOn ; // 0=major, 1=major&basic, 2=allint Pos ; // 0=above, 1=on, 2=below, 3=start pointint UpHill ; // 0=label downhill, 1=uphillint Cut ; // Cut underlying contour? (if Pos == 1)double Every ; // Label interval (master units)

int Sty ; // Styleint Wgt ; // Weightint OwnSymb ; // 0=contour level+color, 1=own level+colorint Lvl ; // - own levelint Clr ; // - own color

char Prefix[12]; // Prefix textchar Suffix[12]; // Suffix textint Decim ; // Number of decimals 0,1,2 or 3int Plus ; // Display plus?int Minus ; // Display minus?char Reserved1[80] ;

} ContLbl ;

// Contour tick settings for FnDisplayContours()

typedef struct {double Every ; // Tick interval (master unit)int OnlyDepr ; // Only depressions?int Triangle ; // 0=draw line, 1=draw triangleint MaxUse ; // 0=all, 1=only closed contours < MaxAreadouble Length ; // Symbol length (master unit)double MaxArea ; // Maximum area (sq master unit)

} ContTck ;

Page 161: Terramodeler User Guide

Page 16119 Public Functions

Triangulate Survey

TerraModeler’s Triangulate Survey tool creates a surface model from survey elements. TerraModeler does not understand any details about survey elements or survey feature coding. TerraSurvey is responsible for deciding what elements and what feature codes can be used as valid information for the surface to be created.

TerraModeler scans the design file and calls a function in TerraSurvey for each element to find out if that element can be used in triangulation.

A similar calling sequence has been built for DigiCad and PRO600 applications. The example code below shows how an application should publish the functions TerraModeler will call.

#define PRO600_SYMBSET 250 /* Any value of your choice */char *ProSym = NULL ;ProSym = mdlCExpression_initializeSet( PRO600_SYMBSET, 0, 1);mdlCExpression_symbolPublish( ProSym, “Pro600StartTriMap”, SYMBOL_CLASS_FUNCTION,

(CType *) &intType, Pro600StartTriMap);mdlCExpression_symbolPublish( ProSym, “Pro600AcceptTriMap”, SYMBOL_CLASS_FUNCTION,

(CType *) &intType, Pro600AcceptTriMap);

/*-------------------------------------------------------------------PRO600 should use this function to add grid pointsto the surface model. This function enables PRO600 to addpoints which do not have corresponding design file elements.

Triangulate Survey command has been started for surfacewith id I.

PRO600 can make calls to FnAddPoints() to add pointsto the surface. PRO600 should not call FnAddDone() fromwithin this routine.

Return 1 if Pro600AcceptTriMap should be called while scanning.Return 0 if Pro600AcceptTriMap does not need to be called.

*/

int Pro600StartTriMap( int I) ;

/*-------------------------------------------------------------------TerraModeler calls this function for every design filedescriptor if Pro600StartTriMap() returned 1.

Pro600 should return one of the following values:0 : element is invalid for surface type Type or element is not

a PRO600 element1 : random point element2 : breakline element

10 : external 3D boundary11 : external 2D boundary20 : internal 3D boundary21 : internal 2D boundary

*/

int Pro600AcceptTriMap( MSElementDescr *Dp, int FileNr, int Type) ;

Page 162: Terramodeler User Guide

Page 16219 Public Functions

/*-------------------------------------------------------------------This function enables DigiCad to add points which do nothave corresponding design file elements.

Triangulate Survey command has been started for surfacewith id value of I.

DigiCad can make calls to FnAddPoints() to add pointsto the surface. DigiCad should not call FnAddDone() fromwithin this routine.

Return 1 if DigiAcceptTriMap should be called while scanning.Return 0 if DigiAcceptTriMap does not need to be called.

*/

int DigiStartTriMap( int I) ;

/*-------------------------------------------------------------------TerraModeler calls this function for every design filedescriptor if DigiStartTriMap() returned 1.

DigiCad can set the exact point in *Xyz (for leveling textelements where the position of the decimal point is not accurate).

DigiCad should return one of the following values:0 : element is invalid for surface type T or element is not

a DigiCad element1 : random point element2 : breakline element

10 : external 3D boundary11 : external 2D boundary20 : internal 3D boundary21 : internal 2D boundary

*/

int DigiAcceptTriMap( Dpoint3d *Xyz, MSElementDescr *Dp, int FileNr, int T) ;

Page 163: Terramodeler User Guide

Page 16320 Installation Directories

20 Installation DirectoriesTerraModeler shares the same directory structure with all Terra Applications. It is recommended that you install all Terra Applications in the same directory.

The list below shows a typical directory structure when TerraModeler has been installed in path C:\TERRA.

c:\terra directory where TerraModeler was installed

config for configuration files

tmodel.cfg defines environment variables

docs for documents and on-line help

tmodel.pdf on-line help

example for example design files

model.dgn example design file

model.clr example coloring scheme

license for user license files

tmodel.lic user license

ma for application files

tmodel.ma application

tmodel.dll library

seed for seed files

tmodel for application settings

Page 164: Terramodeler User Guide

Page 16421 Configuration Variables

21 Configuration VariablesMicroStation is able to locate TerraModeler with the help of configuration variables. When you install TerraModeler, the installation program will create a configuration file TERRA.CFG which defines the required environment variables. This file is placed in MicroStation's CONFIG\APPL subdirectory.

For example, C:\USTATION\CONFIG\APPL\TERRA.CFG may contain:

#-------------------------------------------------------## TERRA.CFG - Configuration for Terra Applications##-------------------------------------------------------

TERRADIR=c:/terra/TERRACFG=$(TERRADIR)config/TERRADOCS=$(TERRADIR)docs/

MS_MDLAPPS < $(TERRADIR)ma/

%if exists ($(TERRACFG)*.cfg)% include $(TERRACFG)*.cfg%endif

This configuration file will include all the configuration files in C:\TERRA\CONFIG directory. TerraModeler's configuration file TMODEL.CFG contains:

#-------------------------------------------------------## TMODEL.CFG - TerraModeler Configuration File##-------------------------------------------------------

TMODEL_LICENSE=$(TERRADIR)license/TMODEL_SET=$(TERRADIR)/tmodel/

In a default configuration, MicroStation will automatically include these settings as configuration variables. You can use MicroStation's Configuration command from Workspace menu to check the values for these variables. In case these variables have not been defined correctly, you should define them manually.

MS_MDLAPPS should include the directory where TMODEL.MA is located.

TMODEL_LICENSE should point to the directory where user license TMODEL.LIC is located.

TMODEL_SET should point to a directory where application settings TMODEL.INF can be stored.