Subject:
|
Precision in .DAT files
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 9 Jul 2002 08:27:19 GMT
|
Viewed:
|
363 times
|
| |
| |
Dear All,
I didn't find in LDraw file format specification anything about a precision
used in co-ordinates and scaling parameters. In most of files I found
precision maximum 4 digits after decimal point. I'm pretty sure that I saw
a file with 6 digits precision.
Are there any formal limitations regarding precision? What is reasonable choice?
Another question related to this subject. If one uses only lines, triangles
and quads in created part, then is very easy to judge whether there are gaps
between them or no. What about other primitives used, especialy transformed
(scalled, rotated etc.)? How to stick other vertices to them? What is the
maximum distance between two points to be considered as one point?
Regards
Marek Idec
|
|
Message has 2 Replies: | | Re: Precision in .DAT files
|
| (...) For parts, three decimal places is generally considered acceptable. Primitives are usually coded with four decimal places of precision, so that they can be scaled-up by a factor of 10 without degrading the precision below three decimal places. (...) (22 years ago, 9-Jul-02, to lugnet.cad)
| | | Re: Precision in .DAT files [DAT]
|
| Marek Idec wrote... (...) That's a good question! When you interface to primitives I think it is important to stick to the scaled coordinates from the primitive file. E.g. if you scale a 4-4cyli.dat by 10 this quad from 4-4cyli.dat 4 16 0.9239 0 (...) (22 years ago, 11-Jul-02, to lugnet.cad)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|