Sorry if this is kind of a dumb question, but do LDraw files describe models (with translation and rotation values with references to bricks contained in other files), or do they describe the bricks themselves (such as the individual vertices, lines, polygons, etc.)? Or do different LDraw file types work in different ways?
Tell me more
×
LEGO® Answers is a question and answer site for
LEGO® and building block enthusiasts. It's 100% free, no registration required.
|
Both, often in the same file. If you take a look at the .ldr file format specification you can see that each file is made up of an number of different types of "line", one of which is a Subfile Reference where you can specify the colour, position, rotation and scale of the model. Other lines can then be added to describe Lines, Triangles, Quadrilaterals and Optional Lines, which are specified by their individual vertices. For example, the 1x1 Brick [part:3005] has the following non-comment lines (I've added comments to show what it's doing):
Common subfiles include the studs and tubes on bricks. When you save a model in MLCad or similar as an .ldr file it's basically all Subfile lines. |
||||
|
|
