Jon Stockill writes:
> 
> On Thu, 28 Aug 2003, Jon Stockill wrote:
> 
> > Well it's running with the settings as above, I'll see what it spits out.
> 
> I've noticed a little bit of weirdness already:
> 
> 1621 pts/2    S      0:01 python /usr/local/bin/terrafit.py -m 50 -x 1200
> -e 2 -f 0.033333 work/DEM-30/
> 
>  1714 pts/2    R      0:00 terra -e 50.000000 -n 50 -p 600 -h 0.033333 -o
> work/DEM-30/e000n00/e000n06/2955316.obj obj work/DEM-30/e0
> 
> It looks like none of the parameters aren't being passed through to terra
> properly.

Arghh.. I never really tested this and what I had is just wrong.. :-(

What was I thinking  !!

HTH

Norman

$ cvs diff -u terrafit.py
Index: terrafit.py
===================================================================
RCS file: /var/cvs/TerraGear-0.0/TerraGear/src/Prep/TerraFit/terrafit.py,v
retrieving revision 1.4
diff -u -r1.4 terrafit.py
--- terrafit.py 19 Aug 2003 02:27:08 -0000      1.4
+++ terrafit.py 28 Aug 2003 13:55:09 -0000
@@ -209,9 +209,9 @@
             sys.stderr.write('%s version %s\n' % (sys.argv[0],VERSION,))
             sys.exit(0)
         if o in ('--minnodes','-m'): minnodes = string.atoi(v)
-        if o == ('--maxnodes','-x'): maxnodes = string.atoi(v)
-        if o == ('--maxerror','-e'): maxerror = string.atof(v)
-        if o == ('--factor','-f'): factor = string.atof(v)
+        if o in ('--maxnodes','-x'): maxnodes = string.atoi(v)
+        if o in ('--maxerror','-e'): maxerror = string.atof(v)
+        if o in ('--factor','-f'): factor = string.atof(v)
     if len(args) == 0 and len(opts) == 0:
         usage()
         sys.exit(1)


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to