Editing DSP
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 79: | Line 79: | ||
Example 1. | Example 1. | ||
− | In | + | In mged create a dsp object of width 142, length 150, no interpolation, cut direction 'ad', cell size 1 (in current units), and unit elevation 0.005 (in current units): |
mged> in dsp1.s dsp f Ex1.dsp 142 150 0 ad 1 0.005 | mged> in dsp1.s dsp f Ex1.dsp 142 150 0 ad 1 0.005 | ||
Line 168: | Line 168: | ||
(The TGM creation is left as an exercise for the reader.) | (The TGM creation is left as an exercise for the reader.) | ||
− | === A practical example | + | === A practical example [UNDER CONSTRUCTION] === |
− | Now let's consider a more practical example and a real test of BRL-CAD. We can import topological (topo) data and produce a realistic ground surface. There are many free sources of such data, but | + | Now let's consider a more practical example and a real test of BRL-CAD. We can import topological (topo) data and produce a realistic ground surface. There are many free sources of such data, but this, for US topo data, seems to be the most likely: |
− | http://nationalmap.gov/viewer.html | + | http://nationalmap.gov/viewer.html |
− | |||
− | Trying to find suitable topo data | + | Trying to find suitable topo data for a specific area is not so easy there, so we located another source of topological data (digital elevation models [DEM]) in [http://mcmcweb.er.usgs.gov/sdts/ SDTS] format: |
http://data.geocomm.com/dem/demdownload.html | http://data.geocomm.com/dem/demdownload.html | ||
Line 197: | Line 196: | ||
$ tar -tvzf 3818122.DEM.SDTS.TAR.GZ | $ tar -tvzf 3818122.DEM.SDTS.TAR.GZ | ||
− | we see that the archive files are not in a directory | + | we see that the archive files are not in a directory, so we create a directory for each: |
$ mkdir 3818122.dem | $ mkdir 3818122.dem | ||
Line 234: | Line 233: | ||
https://github.com/tbrowder/brlcad-usgs-topo-tools | https://github.com/tbrowder/brlcad-usgs-topo-tools | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |