The RocPortal is now available. Learn more.
 

Search Results

2 - Terrain Generator and Image Segmentation

1.0 Introduction

This tutorial will show you how to use the new Terrain Generator to import digital elevation models from satellite data, and how to use the Image Segmentation feature to automatically assign material regions by texture.

Topics covered in this tutorial:

  • Import Terrain
  • Topographic Lines
  • Image Segmentation
  • Select Faces by Filter

Finished Product:

The finished product of this tutorial can be found in the Tutorial 02 Terrain Generator and Image Segmentation data file. All tutorial files installed with RocFall3 can be accessed by selecting File > Recent Folders > Tutorials Folder from the RocFall3 main menu.

2.0 Geometry

2.1 Import Terrain

The Terrain Generator tool allows users to create the geometry of their slope by importing the terrain using satellite imagery. The location of your terrain can be specified in several ways. Users can search an address using a civic address or they can directly enter the coordinates (latitude/longitude) for the center of the desired location. For this tutorial, we will be entering coordinates. From a new project:

  1. Select Geometry > Import/Export > Import Terrain Import Terrain icon
  2. Set the Layer as Satellite.
  3. Set the Region Dimensions (km) to Custom and enter:
    • Width = 1.5 km
    • Height = 1 km
  4. Enter the Center Coordinate as 38.86295534611765, -120.071928601074 and click Set.
    Note: You can copy and paste these coordinates into the Center Coordinate text box.
    Import Terrain Dialog
  5. Check Assign Map Image as Texture, and then click Post-Processing .
The Import Terrain dialog will show up with options to simplify and repair the geometry.

Import Terrain dialog #2

2.2 Simplify and Repair Geometry

These geometry tools are common in all of the Rocscience 3D software.
  1. Select Simplify Triangulation.
  2. Under Simplification Level select Custom > By Triangle Count and enter 25000.
    Note: In the dialog you can see the Before Simplification Triangle count is over 215000, this can lead to larger compute time.

    Simplify Triangulation dialog
  3. Click OK.
    Note: Going back into the simplification tool will show the current new triangulation is 25000. This can be done by selecting Geometry > Surface Triangulation tools > Simplify Triangulation.
  4. You should be redirected back into the Import Terrain dialog, select Find and Repair Defects.
  5. Click Repair to repair the detected defects then click Close.
    Note:
    The Simplification and Repair Process does not remove the image texture on the terrain. Other geometric processes that can change the overall geometry of the surface can remove the texture.

    Repair Geometry dialog
  6. Select Done to close the Import Terrain dialog.

You will notice that it is difficult to make out the image of the terrain. Select the Terrain by clicking on it in the Visibility Tree. In the Properties pane change the Transparency to 0%. Deselect the slope by either clicking in the view outside the slope or using the Clear Selection toolbar option.

Imported Terrain

2.3 Set Slope Surface

When you're done editing the slope:

  1. In the Visibility Tree, select the Terrain we just simplified and repaired.
  2. Select Geometry > Set Slope Surface menu option.
Once you set the slope, you will not be able to edit its geometry.

2.4 Show Topographic Lines

  1. Select Annotate > Topographic Lines Topographic lines icon in the menu.
  2. In the Visibility Tree, ensure the Topographic Annotation is selected to view the options in the Properties Pane below.
  3. Go to the Properties Pane, change the Spacing to 100 and check Show Colors.

The topographic lines turn the model into a topographical map. It can serve as a visual aid to place slope-dependent elements (such as seeders and barriers).

Topo Lines

3.0 Slope Materials and Seeder

3.1 Define Materials

We're going to define 3 materials for this model.

  1. Select Materials > Define Materials Define Materials icon in the menu.
  2. Define the following 3 materials:
  3. Name

    Normal Restitution

    DistributionSt. dev. / Rel.Min / Rel.MaxTangential RestitutionDistributionSt. dev. / Rel.Min / Rel.MaxFriction Angle (o)
    Hard0.7Normal0.04 / 0.12 / 0.120.85Normal0.04 / 0.12 / 0.1220
    Soft0.5Normal0.04 / 0.12 / 0.120.8Normal0.04 / 0.12 / 0.12

    20

    Water0.0None-0.0None-90

Change the color of the water material to Light Blue.

3.2 Add New Material Regions

3.2.1 Automatically Assign Materials by Texture (Image Segmentation)

The new image segmentation feature in RocFall3 uses the imported surface textures to automatically assign the material regions. We will use this feature to set up the areas of hard and soft surfaces.

  1. Select Materials > Automatically Assign Materials by Surface Texture Image Segmentation Icon
  2. The Number of Segmentations option allows you to change the color definition of the image, we will keep it a value of 2.
  3. Each material can be defined on the map using the colors in the Segmentations Section, select the colors and assigned materials shown in the Image below.Image Segmentation
  4. Close the dialog by clicking Ok.

The Image below showcases the material assignment. You can see that the lakes have been identified as soft. In order to define the 2 water bodies, we will need to custom override the material regions of interest. This will be done by drawing water regions.

Material Assignment

When both an automatically assigned material map and material regions exist, the material in the material regions will be used.

3.2.2 Drawing Water regions

  1. Select the Material Regions tab (located next to the Visibility Tree).
  2. Click Draw New Regions.
  3. Select The Water Property and click OK.
  4. We're now in the Draw Polyline mode for defining the polygonal region with the Water material assignment. There are 2 lakes in the East side of the terrain. Roughly draw the outline of the southern most lake. Right-click and select Done when finished defining the polygon.

    Water Region #1
  5. Repeat the same steps for defining the northern most lake.

    Water Region 2

If you want to use the exact values for this model, navigate to and open the provided .txt files in the Tutorials folder or you can download the files linked below. Select the import option in the Edit Polyline dialog and import the Tutorial 02 Water Region 1.txt and Tutorial 02 Water Region 2.txt files for regions 1 and 2.

When you have multiple overlapping material regions, the material property of the region that's highest in the Defined Regions list will be used. You can click on the UP/DOWN buttons to adjust the regions' hierarchy.

Click on the Tree tab in the Visibility pane to exit out of the Edit Material Regions mode.

3.3 Add Line Seeder

  1. Change to the Seeders Flow Tab.
  2. Select Seeders > Define Seeder Properties in the menu.
  3. Set the Number of Rocks to 300.
  4. Leave all other values at their default and click OK to close the dialog.
  5. Select Seeders > Add Line Seeder add line seeder iconin the menu.
  6. Select Height Above Surface and put in a height of 3 m.
  7. Click Add Points on Viewport and draw the seeder line by tracing along the mountain ridge.
  8. Click Done once you’re done drawing the line.
  9. Click OK to close the dialog.

Line Seeder

If you want to use the exact values for this model, navigate to and open the provided Tutorial 02 Line Seeder.txt file in the Tutorials folder. Alternatively, you can save the .txt file by right-clicking the link and selecting Save Link As. To import values for a line seeder, first draw a polyline by selecting Geometry > Draw Polyline, and then import the provided txt file in the Edit table option. Select the Polyline and then convert it into a line seeder by selecting Seeder > Add Line Seeder from Polyline.

4.0 Compute

Click on the Compute Compute icon icon in the toolbar (or select Analysis > Compute icon Compute in the menu).

    5.0 Results

    Results

    This model is a great example to showcase the difference between 2D and 3D models. It's obvious to see how the paths turn and congregate at local valleys. For creating sections at desired locations and exporting them to RocFall2, see this tutorial: RocFall2 Section Creator.


      Portal Account Log In Log Out Home Shopping Cart icon Click here to search our site Click here to close Learning Tech Support Documentation Info Chevron Delete Back to Top View More" PDF File Calendar Location Language Fees Video Click here to visit Rocscience's LinkedIn page Click here to visit Rocscience's YouTube page Click here to visit Rocscience's Twitter page Click here to visit Rocscience's Facebook page Click here to visit Rocscience's Instagram page Bookmark Network Scroll down for more Checkmark Download Print Back to top Single User Multiple Users RSLog RocFall3 CPillar Dips EX3 RocFall RocPlane RocSupport RocSupport RocTopple RS2 RS3 RSData RSPile Settle3 Slide2 Slide3 SWedge UnWedge Commercial License Education License Trial License Shop safe & secure Money-back guarantee