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 / 2825
2824  |  2826
Subject: 
Re: DAT file cleanup tools? or: Zero by any other name
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 14 Sep 1999 22:06:52 GMT
Viewed: 
794 times
  
It is the previous version of ML-Cad that has this presentation of zero when a
part has been rotated. In version 1.4, the problem has been fixed.

I did point out the problem from version 1.3 in the message:
http://www.lugnet.com/cad/?n=2362

I suggest all upgrade to version 1.4, and that problem will disappear.

LDS is not a cleanup tool, but if you run "LDS myfile.dat newfile.dat", it will do
some cleaning. But then again, it can't handle the number -3.33067e-015 correctly,
but rather interpret it as
-18.3307 (-3.33067 - 15)

/Tore


Duane Hess wrote:

In lugnet.cad.dev, Kevin Loch writes:
They do hurt things.  When viewing dat's in ldlite via the web interface
parts with exponents do not render.  They do render when you load them
from a local file however.  I think MLcad is generating them.

KL

I haven't had any problem with MLcad in this respect. Possibly LeoCAD?

Duane

In lugnet.cad.dev, Todd Lehman writes:

Do any of the command-line DAT tools do cleanups on floating-point numbers?
I've noticed lot of lines lately with very-near-zero floating-point numbers,
like these lines, for example...

1 15 40 8 -20 -3.33067e-015 1 -3.33067e-015 0 -3.33067e-015 -1 -1 • -3.33067e-015 1.10441e-029 32014.DAT
1 15 -40 8 -20 -3.33067e-015 6.66134e-015 -1 0 -1 -6.66134e-015 -1 • -2.22853e-029 3.33067e-015 32014.DAT
1 15 -40 8 -100 -3.33067e-015 -1 0 -3.33067e-015 1.10441e-029 -1 1 • -3.33067e-015 -3.33067e-015 32014.DAT
1 15 40 8 -100 -3.33067e-015 1 -3.33067e-015 0 -3.33067e-015 -1 -1 • -3.33067e-015 1.10441e-029 32014.DAT

...which certainly don't hurt anything, but they could just as well (and
more cleanly perhaps) be written like this...

1 15 40 8 -20 0 1 0 0 0 -1 -1 0 0 32014.DAT
1 15 -40 8 -20 0 0 -1 0 -1 0 -1 0 0 32014.DAT
1 15 -40 8 -100 0 -1 0 0 0 -1 1 0 0 32014.DAT
1 15 40 8 -100 0 1 0 0 0 -1 -1 0 0 32014.DAT

Alternatively, a beautifier could also line up columns:

1 15  40 8  -20 0  1  0 0  0 -1 -1 0 0 32014.DAT
1 15 -40 8  -20 0  0 -1 0 -1  0 -1 0 0 32014.DAT
1 15 -40 8 -100 0 -1  0 0  0 -1  1 0 0 32014.DAT
1 15  40 8 -100 0  1  0 0  0 -1 -1 0 0 32014.DAT

I seem to remember a beautifier being talked about once upon a time...

Curious,
--Todd

p.s.  http://www.lugnet.com/cad/dev/?n=2819



Message is in Reply To:
  Re: DAT file cleanup tools? or: Zero by any other name
 
(...) I haven't had any problem with MLcad in this respect. Possibly LeoCAD? Duane (...) (25 years ago, 14-Sep-99, to lugnet.cad.dev)

5 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