![]() |
|
Precision - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: General (https://forums.ldraw.org/forum-12.html) +--- Forum: Official File Specifications/Standards (https://forums.ldraw.org/forum-32.html) +--- Thread: Precision (/thread-29515.html) |
Precision - Willy Tschager - 2026-05-22 Guys, The discussion about precision and the number of digits in an LDraw file is probably as old as the standard itself, and we have seen the pendulum swing back and forth on how strictly it is handled. I came across this part: [https://library.ldraw.org/parts/30885](https://library.ldraw.org/parts/30885) with its six digits (probably to avoid triggering warnings in Edger) in the main file and four digits in the subfiles. This equates to 0.00004 mm. I understand the desire to be as accurate as possible, but we also have to consider efficiency and consistency. We have files with 2 decimal places, some with 3, and some with 4. I believe the root of the problem lies in the vagueness of the specs, which currently offer recommendations rather than strict rules: https://www.ldraw.org/article/512.html#precision To ease the review process, I'd like to propose the following changes to the specs:
I'm open to discussing the exact number of digits—I'm fine with 3, 4, or 5 digits for general geometry—but we need to move away from mere recommendations and establish a firm rule. Some concerns have been raised about rotated subfiles, and the fact that general geometry meeting primitives may require 5 digits, as seen here: 1 11 0 0 0 13.1 0 0 0 1 0 0 0 12.9 1-8chrd.dat 1 12 0 0 0 13.1 0 0 0 1 0 0 0 12.9 1-8tndis.dat 3 13 13.1 0 0 9.26301 0 9.12159 10 0 0 Fair point, but personally, I can live with a tiny mismatch if it means I don't have to constantly check during the review process whether they meet a specific requirement. The fewer exceptions, the better. What are your 2 cents? w. |