tin2iso

This program takes a streaming mesh as input and extracts isocontour lines (elevation lines) at user-specified heights and outputs them in a streaming line format.

There may be a few untested / unimplemented combinations.


Example usage:

>> tin2iso -i ../data/PIE_0015_simp.smb -o ../data/PIE_0015_simp.slb
Extracts 10 contours evenly spaced across the elevation range while killing poorly shaped triangles with edges longer than 500 units. You can look at the results with
>> sl_viewer -i ../data/PIE_0015_simp.slb
Make sure you press p to start loading the lines.
>> tin2iso -i ../data/PIE_0015_simp.smb
If called without any other arguments, it will simply read the entire file and compute and output the number of vertices and triangles and the extent of the bounding box.
>> tin2iso -i ../data/PIE_0015_simp.smb -o ../data/PIE_0015_simp.slb -range 0 30 2
Same as the first but with contour lines every two units between 0 and 30.
>> tin2iso -i ../data/TO_core_last_cityhall.smb
If called without any other arguments, it will simply read the entire file and compute and output the number of vertices and triangles and the extent of the bounding box.
>> tin2iso -i ../data/TO_core_last_cityhall.smb -o ../data/TO_core_last_cityhall.slb -range 40 170 10
Creates contour lines every 10 units between 40 and 170. You can look at the results with
>> sl_viewer -i ../data/PIE_0015_simp.slb
Make sure you press p to start loading the lines.
>> tin2iso -i ../data/TO_core_last_cityhall.smb -o ../data/TO_core_last_cityhall.slb -number 50 -kill 1000
Extracts 50 contours evenly spaced across the elevation range while killing poorly shaped triangles with edges longer than 1000 units.
>> tin2iso -i ../data/TO_core_last_cityhall.smb -o ../data/TO_core_last_cityhall.slb -value 90 -value 120 -value 150
Extracts contours at elevation 90 and 120 and 150.
>> tin2iso -i ../models/armadillo/armadillo-breadth.smc -xyz 0 -o armadillo0.slb -number 50
Extracts 50 contours evenly spaced across the x-axis (!!!)
>> tin2iso -i ../models/armadillo/armadillo-breadth.smc -xyz 1 -o armadillo1.slb -number 50
Extracts 50 contours evenly spaced across the y-axis (!!!)
>> tin2iso -i ../models/armadillo/armadillo-breadth.smc -xyz 2 -o armadillo2.slb -number 50
Extracts 50 contours evenly spaced across the z-axis (!!!). You can look at the results with
>> sl_viewer -i armadillo0.slb -i armadillo1.slb -i armadillo2.slb
Press p to start loading the lines and x to change to the next model.

For more info:

>> tin2iso -h

Usage:
tin2iso -i mesh.sma -o isocontour.sla
tin2iso -i mesh.smb -value 20.0 -value 40.0 -value 30.0 -value 50.0 -o isocontour.sla
tin2iso -i mesh.smb -range 0 300 2 -o isocontour.slb -xyz 1
tin2iso -ismb -number 20 -oslb -kill 100 < mesh.smb > isocontour.slb
tin2iso -h
If you find bugs let us know. (isenburg@cs.unc.edu)

-- JackSnoeyink - 01 Jun 2008

Revision: r1.1 - 17 Jun 2008 - 15:07 - Main.guest
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback