e01.org

LDraw

LDraw is a system of freeware tools and a 3D graphics file format standard for modeling Lego creations.

LDraw is a system of freeware tools and a 3D graphics file format standard for modeling Lego creations. ==File format== LDraw file format describes "part" (representation of Lego brick) as a set of geometric primitives ("p") in a form of polygonal triangulated mesh. LDraw "models" consists of LDraw "parts", same way as Lego models consists of Lego bricks. LDraw file format is plain text file format, and uses comma-separated syntax definition of values. 0 Brick 2 x 2 0 Name: 3003.dat 0 Author: James Jessiman 0 !LDRAW_ORG Part UPDATE 2002-03 0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt 0 BFC CERTIFY CCW 0 !HISTORY 2001-10-26 [PTadmin] Official Update 2001-01 0 !HISTORY 2002-05-07 [unknown] BFC Certification 0 !HISTORY 2002-06-11 [PTadmin] Official Update 2002-03 0 !HISTORY 2007-05-07 [PTadmin] Header formatted for Contributor Agreement 0 !HISTORY 2008-07-01 [PTadmin] Official Update 2008-01 1 16 0 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat 0 BFC INVERTNEXT 1 16 0 24 0 16 0 0 0 -20 0 0 0 16 box5.dat 4 16 20 24 20 16 24 16 -16 24 16 -20 24 20 4 16 -20 24 20 -16 24 16 -16 24 -16 -20 24 -20 4 16 -20 24 -20 -16 24 -16 16 24 -16 20 24 -20 4 16 20 24 -20 16 24 -16 16 24 16 20 24 20 1 16 0 24 0 20 0 0 0 -24 0 0 0 20 box5.dat 1 16 10 0 10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 -10 0 10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 10 0 -10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 -10 0 -10 1 0 0 0 1 0 0 0 1 stud.dat The above code defines the basic 2×2 brick. It consists of a five-sided box (box5.dat, outside) and an inverted five-sided box (inside), the connection between those two, consisting of four quads (the four lines starting with 4), the four studs on top of it (stud.dat) and the long hollow stud in the inside (stud4.dat). All lines in an LDraw file are either empty or start with a command number, where 0 means no command (though over time, some lines starting with 0 followed by specific text in capitals also got a meaning as meta commands). The command 1 for example includes a subfile. It specifies the file's path and a transformation matrix that should be applied to it, as well as its color (where 16 means "use the color that was used when including the current file"). Command 4 specifies a four-sided polygon. There are also commands that define 2D lines. Such lines give the parts a clear contour even in non-shaded orthographic renderings. 0 Example Pyramid for Demonstration of LDRAW Library 0 Name: pyramid.ldr 0 Author: James Jessiman 1 1 -40 -24 60 1 0 0 0 1 0 0 0 1 3001.dat 1 1 40 -24 60 1 0 0 0 1 0 0 0 1 3001.dat 1 1 60 -24 0 0 0 1 0 1 0 -1 0 0 3001.dat 1 1 40 -24 -60 1 0 0 0 1 0 0 0 1 3001.dat 1 1 -40 -24 -60 1 0 0 0 1 0 0 0 1 3001.dat 1 1 -60 -24 0 0 0 1 0 1 0 -1 0 0 3001.dat 0 STEP 1 4 -20 -48 40 1 0 0 0 1 0 0 0 1 3001.dat 1 4 40 -48 20 0 0 1 0 1 0 -1 0 0 3001.dat 1 4 20 -48 -40 1 0 0 0 1 0 0 0 1 3001.dat 1 4 -40 -48 -20 0 0 1 0 1 0 -1 0 0 3001.dat 0 STEP 1 14 0 -72 20 1 0 0 0 1 0 0 0 1 3001.dat 1 14 0 -72 -20 1 0 0 0 1 0 0 0 1 3001.dat 0 STEP 1 0 0 -96 0 1 0 0 0 1 0 0 0 1 3003.dat 0 STEP

References

  1. LDraw.org - File Format 1.0.2 . LDraw.org . retrieved 9 July 2019 · 1790377200.0
  2. James Jessiman Memorial Award . LDraw.org . retrieved 2024-09-01 · 1725145200.0
  3. LDraw.org - James Jessiman Memorial . ldraw.org . retrieved 2024-09-29 · 1727564400.0
  4. http://mlcad.lm-software.com . · 1790377200.0
  5. https://www.melkert.net/LDCad . · 1790377200.0
  6. Meet Leonardo Zide . wiki.ldraw.org . retrieved 2024-09-29 · 1727564400.0
  7. Scalable Ambient Obscurance . research.nvidia.com . retrieved 2024-09-30 · 1727650800.0
  8. LDraw.org - LDraw File Format Specification . ldraw.org . retrieved 2024-09-25 · 1727218800.0
  9. LDraw measuring tools . philohome.com . retrieved 2024-09-25 · 1727218800.0
  10. LEGO Unit Converter . studs.sariel.pl . retrieved 2024-09-25 · 1727218800.0
  11. The LEGO Brick . The BYU Design Review . 2019-12-18. retrieved 2024-09-25 · 1727218800.0
  12. LDraw.org - CATEGORY and KEYWORDS Language Extension . www.ldraw.org . retrieved 2019-07-09 · 1562626800.0
  13. Alphin, Tom. LEGO figures in Scale models . BRICK ARCHITECT . retrieved 2024-09-25 · 1727218800.0
  14. Holly-Wood.it > LDraw > Helper parts . www.holly-wood.it . retrieved 2024-10-03 · 1727910000.0
  15. https://www.blockcad.net/ . · 1790377200.0
  16. Três programas para as crianças . · 1790377200.0
  17. https://tcobbs.github.io/ldview/ . · 1790377200.0
  18. https://trevorsandy.github.io/lpub3d/ . · 1790377200.0
  19. LDraw.org - Colour Definition Language Extension . www.ldraw.org . retrieved 2019-07-09 · 1562626800.0
  20. LDraw.org - Language Extension for Back Face Culling (BFC) . www.ldraw.org . retrieved 2019-07-09 · 1562626800.0
  21. LDraw.org - MPD Language Extension . www.ldraw.org . retrieved 2019-07-09 · 1562626800.0
  22. LDraw.org - Official Model Repository (OMR) Specification Version 1.0.3 . www.ldraw.org . retrieved 2019-07-09 · 1562626800.0
  23. LDraw.org - Language Extension for Texture Mapping . · 1790377200.0
  24. LDraw.org - Localisation Guideline . www.ldraw.org . retrieved 2019-07-09 · 1562626800.0
  25. OrionP. James Jessiman Memorial . LDraw.org . 8 November 2003. retrieved 9 July 2019 · 1790377200.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"LDraw". 1790413560. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1376815686

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy