To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 2824
2823  |  2825
Subject: 
Re: DAT line parsing (was: Re: Datsville: crane2 (exponents?))
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 14 Sep 1999 20:54:30 GMT
Viewed: 
912 times
  
In lugnet.cad.dat.models, Todd Lehman writes:
In lugnet.cad.dat.models, John VanZwieten writes:
In lugnet.cad.dat.models, Kevin Loch writes:
For some reason, the lines with exponents don't render in ldlite when
I use the dat hyperlink in web mode.  ldlite,ldraw and l3p/povray
render them fine locally.  I made it in MLcad.  Is this a bug?
There is no need for e-15 exponents anyway so I substituted 0 for all
exponents. let's try it again.

If not a bug, at least a nit.  I think if you open the file in LDAO's
editor, select the whole text and MoveExact by 1, then move it all back,
LDAO will get rid of the exponents.

My bad.  'Twas a bug in the code in the ldraw.cgi script on the server which
recognized DAT content.  It wasn't expecting 'e' exponents in numbers.

<Snipped Regex stuff>

Also, if anyone knows of any other "funny stuff" that Turbo Pascal might
embed on a line, I'd like to know that too.  (Exponents aren't really "funny
stuff," but I was very surprised to see them output because so many DAT files
have the numbers chopped 2 or 3 places after the decimal point.)

--Todd

Those numbers weren't generated by Turbo Pascal (LEdit).  They were generated
by MLCad, the recent Windows LDraw program.  This is one of the reasons I
haven't used it very extensively.  :)

Jeff



Message is in Reply To:
  DAT line parsing (was: Re: Datsville: crane2 (exponents?))
 
(...) My bad. 'Twas a bug in the code in the ldraw.cgi script on the server which recognized DAT content. It wasn't expecting 'e' exponents in numbers. The old regex (just the non-type-0 portion): /^ \s* [1-5] (?: \s+ [0-9]+ ) (?: \s+ \-? [0-9]* \.? (...) (25 years ago, 14-Sep-99, to lugnet.cad.dat.models, lugnet.cad.dev, lugnet.admin.general)

8 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR