Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Terrasolid Ltd
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, Itlahdenkatu 2, 00210 Helsinki, Finland. The design file was created from an aerial
photograph using TerraSurvey and TerraModeler.
Page 3
Table of Contents
Part I: Getting Started
1 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
Page 4
Page 5
Page 6
Page 7
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:
Icon:
"
Notes
Procedures
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.
Page 9
1 Introduction
Introduction
TerraModeler 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
1 Introduction
Page 11
2 Installation
Installation
Installation media
TerraModeler 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
\alphant\eng\
\windows\eng\
For MicroStation
SE or J
95, SE, J, GeoOutlook or
PowerDraft
Page 12
2 Installation
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.
6.
7.
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.
At this stage you should check the directory where MicroStation was found. Replace the
path if the correct location was not found.
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
2 Installation
Installation from CD
4.
5.
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.
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.
8.
Check TerraModeler for MicroStation item in the dialog. You may select other
applications as well for which you have a valid license.
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
3 Starting TerraModeler
Starting TerraModeler
TerraModeler is an MDL application that runs within MicroStation.
To start TerraModeler:
1.
2.
3.
1.
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
3 Starting TerraModeler
Unloading TerraModeler
TerraModeler 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.
2.
3.
1.
1.
Page 17
4 Tutorial
Tutorial
This 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
4 Tutorial
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
4 Tutorial
Use tool:
Triangulate Survey after reading in the survey data with
TerraSurvey.
Triangulate View or Triangulate Elements.
Surfaces tool opens a window for managing surfaces. The File
pulldown menu in this window has a command for importing xyz
text files.
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.
3.
4.
Click OK.
The Surface settings dialog box opens:
5.
6.
Page 20
4 Tutorial
2.
3.
Page 21
4 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.
2.
3.
Move the mouse inside view 2. As you move the mouse, TerraModeler will display the
triangle under the mouse position.
2.
3.
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.
"
Page 22
4 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.
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.
3.
4.
5.
6.
Page 23
4 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
4 Tutorial
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.
3.
4.
5.
6.
Select the Insert Breakline Elements tool from the Create Surfaces tool box.
Select New surface as the Surface to insert points into.
Set Generate points along breakline toggle on.
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.
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.
8.
9.
Page 25
4 Tutorial
2.
3.
4.
5.
6.
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
4 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.
2.
3.
4.
After excluding the extra triangles, you may recalculate the excavation quantities as described
above.
Page 27
4 Tutorial
2.
3.
4.
5.
6.
7.
8.
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.
Click OK to close the Coloring scheme dialog.
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
4 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
4 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.
Select the Place Line String tool from MicroStation's Lines tool box.
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.
Reset to complete the placement operation.
To draw a profile:
1.
2.
3.
4.
5.
General Tools
To:
Use:
Settings
Set Scale
Surfaces
Save Surfaces
About TerraModeler
Help On TerraModeler
Page 32
5 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.
Effect:
Font for elevation grid labels.
Text size. Given in millimeters on paper.
Defines labeling of range elevations - on the left, on the right or
on both sides of the range.
Effect:
Text rotation: horizontal or vertical.
Number of whole number digits in elevation labels.
Number of decimals in elevation labels.
Text and note line color for binding elevation.
Page 33
5 General Tools
Effect:
How many cross sections to draw on top of each other.
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
Length
Slope
Effect:
Placement point for a slope arrow. Can be set to arrow start or arrow
center.
Number of arrowheads in a slope arrow:
One - arrows always have one arrowhead.
One to three - number of arrowheads depends on the slope.
Two fields specifying the maximum and the minimum length of a
slope arrow.
Slope values at which the arrow length is equal to:
- maximum length
- two thirds of maximum length
- one third of maximum length
- minimum length
Effect:
If on, a text label will be placed along a slope arrow.
Number of decimals in the slope label.
Effect:
Font for profile elevation grid labels.
Text size. Given in millimeters on paper.
Defines label position of grid elevation values - on the left, on the right
or on both sides of the range.
Page 34
5 General Tools
Effect:
Font for bottom row labels.
Text size for bottom row labels. These include labeling for
stations and for surface elevations.
Direction of station labels. Can be set to vertical or horizontal.
If on, elevation labels for specific locations will include a station
value.
If on, elevation labels for specific locations will include a
vertical line.
Effect:
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.
Effect:
Font for profile name and scale labels.
Text size for profile name and scale labels.
Space reserved for bottom row titles on the left side of the
profile.
Effect:
Default friction coefficient for left bank.
Default friction coefficient for channel.
Default friction coefficient for right bank.
Page 35
5 General Tools
Effect:
Level and symbology for the surveyed part of the river section.
Level and symbology for the part of the river section which has
been derived by extending the section based on ground surface.
Level and symbology settings for river section labels.
Effect:
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
Contours category
Contours category defines the font and size of contour labels.
Setting:
Font
Size
Effect:
Font for contour labels.
Text size for contour labels. Given in millimeters on paper.
Effect:
Circles smaller than Radius are interpreted as a single points
(circle center). Larger circles are stroked into several points along
the circumference.
If on, accept single character text elements as elevation points.
Page 36
5 General Tools
Effect:
If on, the text element is written to the design file.
If off, the text element is drawn temporarily.
Effect:
Defines the directory where lattice database files are located.
This directory may contain Intergraph GRD, Disimp or
Ordnance Survey NTF files.
Effect:
Font for leveling point text elements.
Text size. Given in millimeters on paper.
Number of decimals in elevation labels.
If on, sign will be displayed for positive elevations.
If on, sign will be displayed for negative elevations.
Effect:
Font for measurement labels.
Text size. Given in millimeters on paper.
Operation category
Operation category defines what menus the application will open at startup and how the
application can be closed.
Setting:
Create Applications Menu
Effect:
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.
If on, the application will open its Main tool box at startup.
If on, the application will open the Surfaces window at startup.
If on, the application will be unloaded when Main tool box is
closed.
If on, the application will open Flood Mapping extension tool
box at startup.
Page 37
5 General Tools
Effect:
Accuracy limit for quantity calculation tools. If the elevation
difference of two surfaces is less than the limit, that column will
be ignored.
Effect:
Save surface automatically when the surface is first created.
Save surface automatically when unloading TerraModeler or
closing the design file.
PRO600
DigiCad
DigiCad - Load if not loaded
Effect:
If on, use elements created by TerraSurvey.
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.
If on, call Leica's PRO600.
If on, call GeoCad's DigiCad.
If on, load DIGICAD.MA if necessary.
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.
Page 38
5 General Tools
2.
MicroStation V8
MicroStation 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
5 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.
2.
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.
Page 40
5 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
6 Creating Surface Models
To:
Use:
Triangulate Survey
Triangulate View
Triangulate Elements
Page 42
6 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.
2.
3.
Select the surface to be triangulated. You can select a new surface or an existing surface.
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:
Ignore point too close to another
Effect:
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.
Improves the model by generating new points along a long
breakline.
Filters probable survey errors from the model and draws a
small circle to mark the points that have been left out.
Page 43
6 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.
3.
4.
Setting:
Closed elements
Curve elements
B-spline elements
Other linear elements
Single point elements
Effect:
How to use closed elements: As breaklines, As 3D holes or
As 2D holes.
How to use curve elements: As breaklines or As contours.
How to use B-splines: As breaklines or As contours.
Other linear elements are always used as breaklines.
Single point elements are always used as random points.
Page 44
6 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.
2.
3.
4.
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
6 Creating Surface Models
Setting:
Name
Level
Type
Color
Weight
Point type
Effect:
Description of the feature depicted by the elements.
Level for which this rule applies to.
Element type this rule applies to.
If on, rule applies only to elements with a given color.
If on, rule applies only to elements with a given weight.
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.
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.
Page 46
6 Creating Surface Models
1.
2.
3.
Setting:
Minimum distance
Effect:
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
6 Creating Surface Models
1.
2.
3.
Setting:
Ignore point too close to another
Minimum distance
Generate points along breakline
Every
Effect:
If on, filter unnecessary points by Minimum distance.
If the distance between two points is less than Minimum
distance, one of the points will be left out.
If on, generate points along a long breakline.
Distance between points to generate.
Page 48
7 Placing Elements Using a Surface Model
To:
Use:
View Elevation
Compare Elevations
View Slope
Measure Slope
Alignment Offset
Calculate Slope
Page 49
7 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.
2.
3.
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.
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
7 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.
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.
Page 51
7 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.
3.
Enter a data click to accept the labeling or a reset to reject the labeling. You can continue to
step 2.
Page 52
7 Placing Elements Using a Surface Model
1.
2.
3.
4.
To create a copy of a linear element using another element for vertical shape:
1.
2.
3.
4.
Page 53
7 Placing Elements Using a Surface Model
5.
6.
Setting:
Offset
Add vertices to long
segments
Elevation by
Effect:
Horizontal offset of created copy from original element.
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.
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 element.
Projection
Page 54
7 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.
1.
2.
3.
4.
Setting:
Start station
Station
Offset
Dz
Gradient
Effect:
Station value for start point of the alignment. Default is zero.
If on, XY location of a data point will be adjusted to the given
station position.
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.
If on, Z value of a data point will be calculated by adding this
elevation difference to the elevation of the alignment element.
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
7 Placing Elements Using a Surface Model
1.
2.
3.
Setting:
Dz
Make copy
Set level
Outside surface
Effect:
A positive value will drop the element above the surface model
elevation. A negative value will drop the element below the
surface.
If on, the original element will not be affected. Instead, a copy of
the element will be created.
If on, the dropped elements will be set to the given level.
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
7 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.
Setting:
Angle
Min dist
Effect:
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.
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
7 Placing Elements Using a Surface Model
3.
Page 58
7 Placing Elements Using a Surface Model
Setting:
Cell name
Level
Area borders
Bottom as
Top as
Radius as
Minimum distance
Height
Width
Rotate cells
Effect:
Name of a two or three dimensional cell.
Level on which cells will be placed.
Defines whether cells may partially overlap border of they have to
completely within the borders.
A surface model for the bottom elevation of cells. If set to Fixed
elevation, all cells will be placed at a given elevation.
A surface model for the top elevation of cells. If set to Fixed
height, all cells will be drawn in given height.
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.
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.
Random variation for cell height.
Random variation for cell width.
If on, will rotate cells randomly.
Page 59
8 Editing Surface Models
To:
Use:
Construct Breakline
Insert Point
Move Point
Remove Point
Exclude/include triangles
Exclude Triangle
Page 60
8 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.
3.
4.
"
Page 61
8 Editing Surface Models
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
8 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.
Page 63
8 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.
Page 64
8 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.
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.
3.
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
8 Editing Surface Models
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.
To:
"
Use:
Flatten Area
Move Area
Drop Area
Exclude triangles
Exclude Area
Remove Area
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.
Page 66
8 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.
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.
Page 67
8 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.
Setting:
Dz
Effect:
Vertical distance. A positive value will raise points upwards. A
negative value will lower points downwards.
Page 68
8 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.
5.
6.
Page 69
8 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.
Page 70
8 Editing Surface Models
1.
2.
3.
Setting:
Insert as
Effect:
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
8 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.
Page 72
9 Drawing Profiles
Drawing Profiles
To:
Use:
Draw Profile
Update Profile
Page 73
9 Drawing Profiles
1.
2.
3.
4.
5.
Setting:
Mode
Z range
Level
Text size
Depth
Effect:
Drawing mode for surfaces and range:
Draw temporarily - will be erased when you update the view.
Write to file - draw as permanent elements.
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 for surfaces and range.
Text size for elevation grid labels.
Display depth on both sides of section line.
Page 74
9 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.
2.
1.
2.
3.
4.
5.
Page 75
9 Drawing Profiles
Setting:
Name
Layout
Horizontal
Vertical
Label
Start station
Label stations
Step
At fixed intervals
At specific locations
Effect:
Name drawn at the top of the profile.
Layout scheme which defines the data rows that will appear below
the elevation grid of the profile.
Horizontal scale defines the intended plotting scale.
Vertical scale defines the elevation exaggeration as the ratio of
horizontal / vertical scale.
Position where scale labels will be drawn.
Start station of the alignment element.
If on, alignment stations will be written below the profile.
Step for alignment stations.
If on, label surface elevations below the profile at fixed intervals.
Click Surfaces push button to control which surfaces will be
written.
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
9 Drawing Profiles
1.
2.
3.
4.
5.
Page 77
9 Drawing Profiles
Setting:
Start station
From station
To station
Interval
Left width
Right width
Horizontal
Vertical
Binding
From
To
Binding elevation
Effect:
Start station of the alignment element.
Position from where the first section will be drawn.
Position from where the last section will be drawn.
Station interval between two successive sections. Determines
the number of sections drawn.
Section width perpendicular from the alignment.
Section width perpendicular from the alignment.
Horizontal scale defines the intended plotting scale.
Vertical scale defines the elevation exaggeration as the ratio of
horizontal / vertical scale.
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 range
Elevation range for the first section.
Elevation range for the first section.
If on, the binding elevation will be labeled with a note line in the
cross section.
Page 78
9 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.
2.
3.
1.
2.
3.
Page 79
9 Drawing Profiles
1.
2.
3.
4.
"
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
9 Drawing Profiles
1.
2.
3.
4.
Setting:
Horizontal step
Effect:
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
9 Drawing Profiles
Setting:
Method
Step
Label station
Draw vertical line
Bottom row
Font
Size
Effect:
Labeling method:
Linear element - label elevations along a linear element.
Single location - label the elevation of a single location.
If Method is Linear element, this setting controls the station
interval for elevation labels.
If on, write the station value for each elevation.
If on, draw a vertical line for each elevation position.
Bottom row where elevations will be written. Given as
millimeters below the range.
Text font.
Text size. Given in millimeters on paper. Actual size is calculated
using the horizontal scale of the profile.
Page 82
9 Drawing Profiles
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.
4.
5.
You can click Format to select options controling the output format.
Fill in settings values and click OK.
This opens a report window which contains the elevations.
Setting:
Surface
Alignment name
Start station
Output at fixed intervals
Output at surface changes
Effect:
Surface to output elevations from.
Descriptive name for the alignment.
Station value at start of the alignment element.
If on, output surface elevations at a fixed interval. Step field
determines the size of the interval.
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
9 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
9 Drawing Profiles
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.
4.
5.
6.
You can click Format to select options controling the output format.
Fill in settings values.
Check the surface to output in the list box and click OK.
This opens a report window which contains the elevations.
Setting:
Alignment name
Start station
From station
To station
Interval
Left width
Right width
Output at fixed intervals
Effect:
Descriptive name for the alignment.
Station value at start of the alignment element.
Position from where to output the first section.
Position from where to output the last section.
Station interval between two successive sections.
Width of the cross section left from the alignment.
Width of the cross section right from the alignment.
If on, output surface elevations at a fixed interval. Step field
determines the size of the interval.
Page 85
9 Drawing Profiles
Setting:
Output at surface changes
Effect:
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.
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.
Page 86
10 Generating Displays
10
Generating Displays
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 Triangles
Display Grid
Display Slopes
Update Displays
Erase Display
Display Boundary
Page 87
10 Generating Displays
Display modes
TerraModeler 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
10 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.
2.
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
10 Generating Displays
Contour options
Contour option:
Minor
Basic
Major
Only elevations
Minimum area
Distance
Deviation
Turn angle
Effect:
Level, color, style and weight for minor contours.
Level, color, style and weight for basic contours.
Level, color, style and weight for major contours.
If on, contours will be drawn within the given elevation range.
Helps in leaving out unnecessary detail. A closed contour curve
will not be drawn, if the enclosed surface area is smaller than
minimum area.
If on, contours will be drawn as complex chains or as complex
shapes.
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.
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.
Vertex can be left out only if the distance between the previous
and the next remaining vertex is smaller than this.
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.
Vertex can be left out only if the contour direction changes less
than this angle at the vertex.
Page 90
10 Generating Displays
Rotation
Every
Cut underlying contour
Use
Prefix
Suffix
Accuracy
Display plus
Display minus
Effect:
What type of contours should be labeled.
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 of label text element:
Uphill - label is readable when looking uphill.
Downhill - label is readable when looking downhill.
Interval of contour labels as meters along the 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.
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 added to the beginning of every contour label.
Suffix added to the end of every contour label.
Number of decimals shown in contour labels.
If on, sign will be displayed for positive elevations.
If on, sign will be displayed for negative elevations.
Page 91
10 Generating Displays
Effect:
Interval of contour ticks as meters along the contour.
If on, only closed depressions will have ticks.
If on, only closed depressions smaller than a given area
will have ticks.
Shape of contour ticks: line or triangle.
Length of the tick line or triangle.
Page 92
10 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.
2.
Page 93
10 Generating Displays
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:
Open a previously saved coloring scheme from a file.
Save coloring scheme to a file.
Add an empty color which will not be drawn.
Remove last color from coloring scheme.
Remove all colors from coloring scheme.
Page 94
10 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.
2.
Setting:
Grid size
Enter origin
Create flat shapes
Create filled shapes
Effect:
Size for rectangular squares in the grid.
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.
If on, each grid square will be drawn flat at the elevation of its
center point.
If on, the grid squares will be filled with color.
Page 95
10 Generating Displays
2.
Setting:
Grid size
Enter origin
Effect:
Distance between elevation text locations.
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.
Clicking on Options push button opens a dialog box for setting various elevation text options.
Effect:
Text font.
Text size in millimeters on paper.
Number of decimals in elevation labels.
If on, sign will be displayed for positive elevations.
If on, sign will be displayed for negative elevations.
Page 96
10 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.
2.
Clicking on Options push button opens a dialog box for setting various slope options.
Setting:
Grid size
Enter origin
Effect:
Distance between elevation text locations.
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
10 Generating Displays
Slope option:
Place by
Arrowheads
Length
Slope
Effect:
Placement point for a slope arrow. Can be set to arrow start or arrow
center.
Number of arrowheads in a slope arrow:
One - arrows always have one arrowhead.
One to three - number of arrowheads depends on the slope.
Two fields specifying the maximum and the minimum length of a
slope arrow.
Slope values at which the arrow length is equal to:
- maximum length
- two thirds of maximum length
- one third of maximum length
- minimum length
If on, a text label will be placed along a slope arrow.
Number of decimals in the slope label.
Page 98
10 Generating Displays
2.
Setting:
Surface
Draw mode
Sun azimuth
Sun angle
Color scheme
Color cycles
Views
Effect:
Surface to display.
Drawing mode:
Opaque - display hides anything in the background.
Transparent - keeps background visible outside the surface.
Direction from which the sun is shining. Zero is north.
Angle indicating how high above the horizon sun is.
Color scheme to use:
Default - magenta, red, yellow, green, cyan and blue.
Selected colors - use Define button to create a color scheme.
Number of color cycles. Use zero to create a gray scale display
showing triangle slope only.
Views in which to display the shaded surface.
Page 99
10 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.
Page 100
10 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.
Setting:
Draw permanently
Fit view by surface
Effect:
If on, draws the boundaries as permanent elements when you
enter a data click.
If on, fits the view by the surface when you enter a data click.
Page 101
10 Generating Displays
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 Themes
Display Drainage
Page 102
10 Generating Displays
Display Themes
Not 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.
2.
3.
Setting:
Color by
Draw as
Effect:
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.
How to draw the boundary of each theme area:
3d shapes - follows surface model elevation.
2d shapes - draw at zero elevation.
Page 103
10 Generating Displays
Display Drainage
Not 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.
2.
3.
Page 104
10 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.
3.
Page 105
10 Generating Displays
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.
3.
Setting:
Surface
Level
Create graphical groups
Draw triangles outside regions
Effect:
Surface model to display.
Level on which to draw region triangles.
If on, the triangles inside each region will form one graphical
group.
If on, draws triangles which are outside all boundaries using
the given color.
Page 106
10 Generating Displays
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.
2.
3.
Setting:
Surface
Rasters
Mode
Effect:
Surface model to display.
Source of raster images:
GeoTIFF files - you select files to use.
MicroStation references - rasters attached by MicroStation.
TerraPhoto references - rasters attached by TerraPhoto.
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
10 Generating Displays
Setting:
Colors
Level
Color
Smooth facets for rendering
Material
Palette
Effect:
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 to assign to the first raster image.
Color to assign to the first raster image.
If on, smoothens random point edges between triangles.
Material file to create.
Palette file to create.
Page 108
11 Computing Quantities
11
Computing Quantities
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 Quantity
Compute Area
Page 109
11 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.
2.
3.
Select upper surface and lower surface. Fill in values for calculation settings.
Click on Calculate push button to start computation.
Setting:
Upper surface
Lower surface
Limit
Limit surface
Inside fence
Step
Surf cut limit
Display
Draw as
Effect:
Upper surface for calculation.
Lower surface for calculation.
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.
Surface to limit calculation.
If on, calculation will take place only inside a fence or a selected
shape element.
Grid size. A small step will produce more accurate results but the
calculation will take longer.
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 method for calculation results:
No display - nothing is drawn.
Draw temporarily - as temporary elements.
Write to file - as permanent elements.
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
11 Computing Quantities
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.
2.
3.
Select upper surface and lower surface. Fill in values for calculation settings.
Click on Compute push button to start computation.
Setting:
Upper surface
Lower surface
Inside fence
Display
Effect:
Upper surface for calculation.
Lower surface for calculation.
If on, calculation will take place only inside a fence or a selected
shape element.
Display method for calculation results:
No display - nothing is drawn.
Draw temporarily - as temporary elements.
Write to file - as permanent elements.
Page 111
11 Computing Quantities
Select an alignment element. This element will often be a three dimensional complex chain.
Select the Compute Alignment Quantity tool.
The Compute alignment quantities window opens:
3.
4.
"
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
11 Computing Quantities
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.
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
11 Computing Quantities
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.
Select an alignment element. This element will often be a three dimensional complex chain.
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
11 Computing Quantities
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.
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.
3.
4.
5.
6.
7.
8.
Use Selection tool to select an alignment element running along the tunnel.
Click Add next to the upper list to add the selected alignment.
Select the row of the alignment in the upper list box.
Use Selection tool to select cross section elements for the alignment.
Click Add next to the lower list to add the selected cross sections.
Validate the created list of cross sections. Make sure that station positions and surface areas
make sense.
Click Compute to start the volume computation.
This opens the Report tunnel volume dialog:
9.
Page 115
11 Computing Quantities
2.
Page 116
11 Computing Quantities
Compute Area
Not 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.
2.
3.
Setting:
Compute
Domain
Slope
Paint calculated area
Label 3d area of each shape
Effect:
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.
If on, compute only triangles assigned to the selected domain.
If on, compute only triangles in a give slope range. The lower
and upper limits are given as slope percentages.
If on, draw each calculated triangle as a temporary shape
element.
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
12 Using Domains
12
Using 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
Domain View
Page 118
12 Using Domains
Define Domains
Not 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.
2.
Setting:
Name
Elevations
Level
Effect:
A free description text.
Surface used when assigning coloring scheme elevation boundaries.
Level for displaying triangles.
Page 119
12 Using Domains
Domain View
Not 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.
2.
Select View in which you want to see the current domain assignments.
Setting:
Draw only active domain
Effect:
Speeds up view update by drawing only the active domain.
Page 120
12 Using Domains
Set Area Domain tool sets domain of all triangles inside or outside a fence. This tool uses the center point of a triangle when deciding if a triangle is inside or outside the fence.
Setting:
Surface
Set to
Fence
Effect:
Surface model to operate on.
Domain to which triangles will be assigned.
Fence mode - inside or outside.
Page 121
12 Using Domains
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.
Setting:
Surface
Set to
Effect:
Surface model to operate on.
Domain to which triangles will be assigned.
Page 122
12 Using Domains
3.
Page 123
12 Using Domains
Display Domain Triangles tool draws triangles for a surface model using domain coloring
schemes and domain levels.
2.
3.
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
13 Placing Single Display Elements
13
To:
Use:
Place Contour
Page 125
13 Placing Single Display Elements
Place Contour
Not 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.
2.
Page 126
13 Placing Single Display Elements
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.
Page 127
13 Placing Single Display Elements
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.
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
14 Managing Surfaces
14
Managing Surfaces
TerraModeler 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.
2.
3.
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.
To:
Save one surface to the disk file assigned to it.
Save one surface under a new name.
Save all modified surfaces.
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.
Page 129
14 Managing Surfaces
2.
3.
"
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.
Page 130
14 Managing Surfaces
"
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.
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
14 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.
Setting:
XY distance
Z distance
Effect:
Minimum horizontal distance between to points.
Minimum vertical distance between to points.
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.
Page 132
14 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.
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
14 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.
Setting:
Primary
Secondary
Use
Effect:
All the information from the primary surface is copied to the new
surface.
Information from the second surface will be used only outside the
primary surface.
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.
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.
Page 134
14 Managing Surfaces
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:
Surface
From
Expand to rectangle
Fence contents
X step
Y step
Enter origin
From area
Radius
Z scale
New Z
Effect:
Surface to create.
Existing surface from which to calculate values from.
If on, expand the new surface to be a rectangular area
enclosing all of the points in the original surface.
If on, use only those points from the original surface that
reside in fence contents.
X direction interval between points in the new surface.
Y direction interval between points in the new surface.
If on, you can enter an origin for the new grid points.
Shape of calculation area around a grid point:
Circle - circle with a given radius.
Square - radius is half the side length.
Size of calculation area around a grid point.
Constant scaling for the new elevation values.
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
15 Importing and Exporting Data
15
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.
Page 136
15 Importing and Exporting Data
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.
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.
2.
3.
4.
5.
Export the surface model points into the design file as graphical elements.
Switch all other levels off in a view.
Move the graphical elements using MicroStation's fence tools.
Delete the old surface model.
Use Triangulate View tool to recreate the surface model from the shifted graphical
elements.
Page 137
15 Importing and Exporting Data
2.
3.
Setting:
Colors
Step
Scheme
Degree
Effect:
Color depth of the raster image:
24 Bit Color - true color image.
256 Colors - 256 colors.
Grey scale - 8 bit grey scale.
Size of each pixel.
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.
Determines how the color changes in Cold to hot and Hot to cold
schemes are computed
Page 138
16 Lattice Database
16
Lattice Database
Not 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.
Page 139
16 Lattice Database
3.
4.
Page 140
17 Flood Mapping
17
Flood Mapping
To:
Use:
Display Flood
Page 141
17 Flood Mapping
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.
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.
Page 142
17 Flood Mapping
3.
Page 143
17 Flood Mapping
Edit River Sections tool lets you modify river sections which have been drawn to the design file.
3.
4.
Modify the cross section information using the tools in the window.
Close the window when done.
4.
5.
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.
(Optional) Place a fence around the river sections you want to output.
Select the Export River Sections tool.
(Optional) Accept fence contents.
This opens a dialog for selecting a name for the output file.
4.
5.
Page 144
17 Flood Mapping
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.
Set active level and color to be unique for the flood model in question.
(Optional) Place a fence around the river sections you want to input.
Select the Input Water Elevations tool.
(Optional) Accept fence contents.
This opens a dialog for selecting the input file.
5.
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 Boundaries tool generates a shape element around the area covered by river
sections.
Page 145
17 Flood Mapping
Display Flood
Not 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.
3.
4.
5.
Page 146
18 Lifting 2D Contours
18
Lifting 2D Contours
To:
Use:
Lift 2D Contours
Page 147
18 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.
2.
3.
4.
Setting:
File
Levels
Labeled contours
Unlabeled contours
Labels
Set symbology
Effect:
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.
List of levels from which to scan for elements. For example:
61 - level 61.
15,21-24 - levels 15, 21, 22, 23 and 24.
If on, lift contours for which a matching label has been found.
If on, copy linear elements for which no elevation value was found.
These will be copied to zero elevation.
If on, you can enter an origin for the new grid points.
If on, modify the symbology of elements according to settings
defined using Settings pushbutton.
Page 148
18 Lifting 2D Contours
Setting:
Find connected elements
Effect:
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.
If on, modify the symbology of elements according to
settings defined using Settings pushbutton.
Page 149
18 Lifting 2D Contours
3.
Setting:
Mark elements
Elevation
Level
Color
Effect:
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.
List of levels from which to scan for elements. For example:
61 - level 61.
15,21-24 - levels 15, 21, 22, 23 and 24.
If on, move invalid elements to the given level.
If on, set invalid elements to the given color.
Page 150
19 Public Functions
19
Public Functions
TerraModeler 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
19 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
{
CExprValue
CExprResult
int
if (!LoadApp( "TMODEL"))
return (0) ;
return (1) ;
return (1) ;
Page 152
19 Public Functions
Function Prototypes
/*------------------------------------------------------------------Return number of triangulated surface models.
*/
int
FnSurfaceCount( void) ;
typedef struct {
int
Id ;
int
DrawInProfile ;
char
Name[32] ;
int
Type ;
char
Reserved[76] ;
} SurfInfo ;
/*
/*
/*
/*
/*
Id */
Draw in profiles? */
Name */
Type id */
For future development - ignore now */
FnSurfaceColor( int I) ;
Page 153
19 Public Functions
FnDrapeArray( Dpoint3d **Pnt, char **Val, const Dpoint3d *Tbl, int Cnt, int I) ;
Page 154
19 Public Functions
FnModelExists( int I) ;
/*------------------------------------------------------------------Create a new empty surface model into which points can be added
using FnAddPoints() or FnInsertPoints().
Type is the surface type as defined in Modeler user settings.
Calling application should use zero (normally ground) or let
the 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
Page 155
19 Public Functions
FnAddRetriangulate( int I) ;
Page 156
19 Public Functions
typedef struct {
int
SurfId ;
int
Lvl ;
Dscr
*Align ;
double
AlignLen ;
double
ExaggZ ;
double
RangeStart;
double
RangeEnd ;
Dpoint3d
Org ;
int
Scale ;
} FnProf ;
/*
/*
/*
/*
/*
/*
/*
/*
/*
Page 157
19 Public Functions
Page 158
19 Public Functions
FnAskProfSurfaces( void) ;
Page 159
19 Public Functions
FnDisplayContours( int SurfId, ContAct *Ap, ContSet *Sp, ContLbl *Lp, ContTck *Tp);
Contour action for FnDisplayContours()
typedef struct {
int
Mode ;
int
Type ;
int
DrawTicks ;
int
DrawLabels;
int
Draw1 ;
int
Draw2 ;
int
Draw3 ;
int
Reserved1 ;
double Every1 ;
double Every2 ;
double Every3 ;
char
Reserved2[80];
} ContAct ;
//
//
//
//
//
//
//
//
typedef struct {
int
ColorBy ;
int
Lvl1 ;
int
Lvl2 ;
int
Lvl3 ;
int
Clr1 ;
int
Clr2 ;
int
Clr3 ;
int
Sty1 ;
int
Sty2 ;
int
Sty3 ;
int
Wgt1 ;
int
Wgt2 ;
int
Wgt3 ;
int
Reserved1 ;
int
ClrCnt ;
int
Clrs[127];
long
ClrElev[128];
char
ClrFix[128];
int
Domains ;
int
ElevLimit ;
double ElevMin ;
double ElevMax ;
int
Smoothing ;
int
AreaSkip ;
double AreaMin ;
int
Complex ;
int
Thin ;
double ThinDst ;
double ThinDev ;
double ThinAng ;
char
Reserved2[80]
} ContSet ;
//
//
//
//
//
//
//
//
//
//
//
//
//
Color
Minor
Basic
Major
Minor
Basic
Major
Minor
Basic
Major
Minor
Basic
Major
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
;
Page 160
19 Public Functions
//
typedef struct {
int
LabelsOn ;
int
Pos ;
int
UpHill ;
int
Cut ;
double Every ;
int
int
int
int
int
char
char
int
int
int
char
} ContLbl ;
//
Sty ;
Wgt ;
OwnSymb ;
Lvl ;
Clr ;
//
//
//
//
//
//
//
//
//
//
Style
Weight
0=contour level+color, 1=own level+color
- own level
- own color
Prefix[12];
//
Suffix[12];
//
Decim ;
//
Plus ;
//
Minus ;
//
Reserved1[80] ;
Prefix text
Suffix text
Number of decimals 0,1,2 or 3
Display plus?
Display minus?
typedef struct {
double Every ;
int
OnlyDepr ;
int
Triangle ;
int
MaxUse ;
double Length ;
double MaxArea ;
} ContTck ;
//
//
//
//
//
//
Page 161
19 Public Functions
Triangulate Survey
TerraModelers 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 points
to the surface model. This function enables PRO600 to add
points which do not have corresponding design file elements.
Triangulate Survey command has been started for surface
with id I.
PRO600 can make calls to FnAddPoints() to add points
to the surface. PRO600 should not call FnAddDone() from
within 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) ;
Page 162
19 Public Functions
DigiStartTriMap( int I) ;
Page 163
20 Installation Directories
20
Installation Directories
TerraModeler 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
config
tmodel.cfg
docs
tmodel.pdf
on-line help
example
model.dgn
model.clr
license
tmodel.lic
user license
ma
tmodel.ma
tmodel.dll
application
seed
tmodel
library
Page 164
21 Configuration Variables
21
Configuration Variables
MicroStation 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.