CMPUT 498 Terrains - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

CMPUT 498 Terrains

Description:

Assuming constant degree per vertex, an iteration takes O(log n) ... We can reduce the time to O(log n k) by traversing the TIN and marking the ... – PowerPoint PPT presentation

Number of Views:53
Avg rating:3.0/5.0
Slides: 21
Provided by: csUal
Category:

less

Transcript and Presenter's Notes

Title: CMPUT 498 Terrains


1
CMPUT 498Terrains
  • Lecturer Sherif Ghali
  • Department of Computing Science
  • University of Alberta

2
Terrain models
  • Regular square grid
  • Contour line model
  • Triangulated Irregular Network
  • Hierarchical model

3
Terrain models
  • Regular square grid
  • Elevation at a regular square tesselation
  • Storage 2-dimensional array
  • Data represents
  • Slab-like function
  • Point-samples to be bilinearly interpolated
  • Point-samples to be interpolated by splines

4
Terrain models
  • Contour line model
  • Locations of constant elevations
  • Set of (closed) polygonal chains
  • Storage
  • DCEL
  • Contour Tree, a graph where
  • nodes polygonal chains
  • edges chains bound the same region

5
Terrain models
  • Triangulated Irregular Network
  • Storage
  • DCEL
  • Quad-edge
  • Variation shown

6
Quad-edge data structure

source Guibas Stolfi
7
Quad-edge data structure

source P. Heckbert
8
Terrain models
  • Hierarchical model
  • Various scales/levels of details (and errors)
  • Storage
  • multiple levels? -expensive
  • cross-linking to facilitate searching

9
Grid to TIN conversion
  • Incrementally eliminate vertices not introducing
    salient features (e.g. difference between
    interpolated height of neighbouring vertices and
    vertex is smallest)

10
Grid to TIN conversiondrop heuristic
  • Evaluate vertical distance between each vertex
    and the Delaunay (re)triangulated region built
    after its removal

11
Grid to TIN conversiondrop heuristic
  • How often does the error have to be recomputed?
  • Use a balanced binary tree indexed by error(v)
  • error difference w.r.t. retriangulation
  • Cross-link
  • nodes in tree reference vertices in TIN
  • and vice-versa
  • Assuming constant degree per vertex, an iteration
    takes O(log n)
  • Algorithm takes O(n log n) time typically
  • No guarantee on the error bound (why?)

12
Grid to TIN conversionincremental refinement
  • Input grid maximum allowed error
  • maximum error is guaranteed

13
Grid to TIN conversionincremental refinement
14
(No Transcript)
15
(No Transcript)
16
(No Transcript)
17
(No Transcript)
18
(No Transcript)
19
(No Transcript)
20
(No Transcript)
21
Contour lines
  • Treatment of horizontal triangles
  • Only handle edges adjacent to a triangle with a
    higher vertex

22
Computation of contour lines
  • for each triangle
  • for each desired height
  • intersect height with triangle
  • for n triangles, time is in O(n)
  • Disadvantages
  • Segments are disconnected

23
Contour lines aspolygonal chains
  • Method 1 (for a set of triangles)
  • postprocess the segments to connect them
  • for n triangles and k contour segments, time is
    O(n k log k)
  • Method 2 (for a TIN)
  • trace contour by traversing the TIN
  • use mark bits to determine completion of a cycle
  • takes O(n)

24
Interval trees
  • Given a set of intervals, build a data structure
    such that the query find the intervals
    containing a value can be answered efficiently

25
Interval tree
26
Interval trees for contour lines
  • Why is the interval tree useful for contour line
    computation?
  • Build interval tree on z-spans of triangles
  • Time is in O(log n k)

27
Generating chains
  • Using postprocessing results in time in O(log n
    k log k)
  • We can reduce the time to O(log n k) by
    traversing the TIN and marking the triangles
    traversed
  • A second traversal is needed to reset the marks

28
(No Transcript)
29
(No Transcript)
30
(No Transcript)
31
(No Transcript)
32
(No Transcript)
33
(No Transcript)
34
Reference
Chapter 3
Write a Comment
User Comments (0)
About PowerShow.com