Inline part ??? - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: General (https://forums.ldraw.org/forum-12.html) +--- Forum: Parts Tracker Discussion (https://forums.ldraw.org/forum-36.html) +--- Thread: Inline part ??? (/thread-23172.html) |
Inline part ??? - Johann Eisner - 2019-01-23 Hi Maybe a silly question, but I often read "inline a part". What does this mean exactly? And always remember, I'm a bloody beginner. RE: Inline part ??? - Orion Pobursky - 2019-01-23 (2019-01-23, 20:39)Johann Eisner Wrote: Hi Basically it means take all the lines in the file referenced by the type 1 line and insert them into the current file, adjusted for the rotation and position specified by the referring type 1 line. RE: Inline part ??? - Willy Tschager - 2019-01-23 (2019-01-23, 20:39)Johann Eisner Wrote: Hi Inlining a part in a model means that you don't reference the file containing the geometry but you add the geometry directly to the model. In OMR models it is a requirement for unofficial part since you cannot be certain that the origin, orientation, geometry of lines, triangles, quads remain as they do in the very moment when you add them to your model. There are sometimes heavy changes (think of subfiling) to unofficial parts and it would totaly mess up your model if the geometry isn't inlined into the model itself. This would be the code with no inline: Code: 1 1 -90 -16 0 0 0 1 0 1 0 -1 0 0 3710.DAT This is the same code with 2412B.dat inlined. Code: 1 1 -90 -16 0 0 0 1 0 1 0 -1 0 0 3710.DAT w. RE: Inline part ??? - Johann Eisner - 2019-01-23 Already used x times, but did not know that it is. Thanks for the answers. RE: Inline part ??? - Travis Cobbs - 2019-01-24 (2019-01-23, 20:39)Johann Eisner Wrote: Hi I'm a bit confused by both Orion's and Willy's answers. Particularly with respect to the OMR, parts should not be inlined as described, but instead included as files inside the MPD file (using the 0 FILE meta-command). They would then be referenced as normal. The following comes right from the OMR spec: Quote:Unofficial parts are allowed to be used, but must be included in the MPD as referenced subfiles. The filename of the unofficial part is subject to the following naming rules: Technically speaking, this isn't "inlining", but if someone asks for a part to be inlined, I would think that this is what they really mean. RE: Inline part ??? - Philippe Hurbain - 2019-01-24 (2019-01-24, 2:29)Travis Cobbs Wrote: I'm a bit confused by both Orion's and Willy's answers.Same thing here. What Orion describes is what I call inlining. In a model, this occurs mainly when a user "inlines" a composite part (shortcut) to move or recolor one of the components (eg. to flex a 61903 universal joint). What Willy describes perfectly is embedding. I think "embedding" is what Johann meant. RE: Inline part ??? - Johann Eisner - 2019-01-24 (2019-01-24, 7:02)Philippe Hurbain Wrote:(2019-01-24, 2:29)Travis Cobbs Wrote: I'm a bit confused by both Orion's and Willy's answers.Same thing here. What Orion describes is what I call inlining. In a model, this occurs mainly when a user "inlines" a composite part (shortcut) to move or recolor one of the components (eg. to flex a 61903 universal joint). What Willy describes perfectly is embedding. I think "embedding" is what Johann meant. Yes. In this case, I meant that I have already used x times "embedding". RE: Inline part ??? - Steffen - 2019-01-31 LDDP has a dedicated button for doing that. You can select 1 or more lines in a file and then hit that button. What will happen then is that the line 1 referencing another file will be used to apply to the whole contents of the referenced file, and the resulting computation results will be put directly into the parent file. *Example:* before inlining: file x.dat references file s\somefile.dat by line 1 16 x y z a b c d e f g h i s\somefile.dat after inlining: file x.dat will directly contain the lines that previously were found in s\somefile.dat, with the numbers x,y,z,a,b,c,d,e,f,g,h,i applied to it |