![]() |
LSynth result dependent on absolute position - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: All Other Programs. (https://forums.ldraw.org/forum-26.html) +--- Thread: LSynth result dependent on absolute position (/thread-7507.html) |
LSynth result dependent on absolute position - Ignacio Fernandez Galvan - 2012-12-26 Consider this simple file: Code: 0 SYNTH BEGIN ELECTRIC_CABLE 7 The two portions are exactly the same, the second is just displaced +500z. When processed with LSynth, however, the first portion generates only 24 lines, while the second generates 2911 lines! I guess this is due to rounding errors and matrix transformations being referred always to (0,0,0), but can it be fixed (other than by splitting the code in two parts)? Re: LSynth result dependent on absolute position - Travis Cobbs - 2012-12-26 You could presumably move the synthesized part into a subfile, and then offset the generated subfile by +500z. If your main file is an MPD, this shouldn't be too difficult. Otherwise, you'll have to keep the subfile around next to your main file. Re: LSynth result dependent on absolute position - Gerald Lasser - 2013-08-19 Though late, when using your file on my installation I get the same results for both sections. Gerald |