Mercurial > hg > python
diff util.py @ 34:668d788cac47
handle unbounded Y, landing below target elevation
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 12 Jun 2021 17:25:13 +0100 |
parents | 5488b5d3ba10 |
children |
line wrap: on
line diff
--- a/util.py Mon May 31 15:01:38 2021 +0100 +++ b/util.py Sat Jun 12 17:25:13 2021 +0100 @@ -17,7 +17,12 @@ (host.nr,host.ox,host.oy,host.oz)=intsMaybe(ff) host.et=ff[9] l=infile.readline().rstrip() - (host.orad,host.ymin,host.ymax)=intsMaybe(PPAT.split(l)) + l2=PPAT.split(l) + if l2[-1]=='bounded': + host.orad=int(l2[1]) + host.ymin=host.ymax=-1 + else: + (host.orad,host.ymin,host.ymax)=intsMaybe(PPAT.split(l)) if skipColHdrs: _=infile.readline()