source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vrippack-0.31/src/plytools/sd2plys4vrip.tcl @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 813 bytes
Line 
1# Is there a way to tell readfile not to use .xf files?
2
3# Create a bunch of ply files in a subdirectory
4
5# Usage: sd2plys4vrip <sd-file> <vrip-dir> <res> [-use_sub_sweeps]
6
7if {[llength $argv] < 3} {
8   puts ""
9   puts "Usage: sd2plys4vrip <sd-file> <vrip-dir> <res> \[-use_sub_sweeps\]"
10   puts ""
11   exit
12}
13
14set file [lindex $argv 0]
15set vripDir [lindex $argv 1]
16set res [lindex $argv 2]
17
18set useSubSweeps 0
19
20if {[llength $argv] == 4} {
21   if {[lindex $argv 3] == "-use_sub_sweeps"} {
22      set useSubSweeps 1
23   }
24}
25
26readfile $file
27
28if {$useSubSweeps} {
29   set sdConfLines [plv_write_sd_for_vrip $res $vripDir subsweeps]
30} else {
31   set sdConfLines [plv_write_sd_for_vrip $res $vripDir sweeps]
32}
33
34set CONF [open "${vripDir}/vrip.conf" a]
35foreach bmesh $sdConfLines {
36   puts $CONF $bmesh
37}
38close $CONF
39
40exit
41
Note: See TracBrowser for help on using the repository browser.