Hi, Quoting Leonardo Zide (2014-09-11 03:38:40) > That's much better, the zipped file is down to 80 Kb. It may still be a > little too big to include it as data (I think the limit is either 32 or > 64Kb), I'll take another look and see if I can trim it down some more. There > were still some .0s in there, but I removed them with sed.
most space seems to be wasted by the baseplates with large amounts of studs. To solve it, I thought of creating a file stud2.dat which includes a 2x2 array of stud.dat, a file stud4.dat which includes a 2x2 array of stud2.dat and so on and so forth until stud32.dat. Then it would be easy to subdivide any array of studs so that only very few lines of code are needed. Unfortunately it seems that LDView for example cannot handle multiple levels of nesting like this. While it should display this for stud4.dat: https://mister-muffin.de/p/MLV6.png It actually shows this: https://mister-muffin.de/p/aBPM.png I reported this in their bugtracker https://sourceforge.net/p/ldview/bugs/6/ because apparently arbitrary nesting should be supported http://www.ldraw.org/article/218.html#lt1 Now my question is: can leocad handle arbitrary nesting? I attached stud1.dat, stud2.dat and stud4.dat so that you might check. I was unable to load even stud1.dat in leocad. cheers, josch
2 24 0.0 -4.0 6.0 2.296101 -4.0 5.543277 2 24 0.0 0.0 6.0 2.296101 0.0 5.543277 2 24 2.296101 -4.0 5.543277 4.242641 -4.0 4.242641 2 24 2.296101 0.0 5.543277 4.242641 0.0 4.242641 2 24 4.242641 -4.0 4.242641 5.543277 -4.0 2.296101 2 24 4.242641 0.0 4.242641 5.543277 0.0 2.296101 2 24 5.543277 -4.0 2.296101 6.0 -4.0 0.0 2 24 5.543277 0.0 2.296101 6.0 0.0 0.0 2 24 6.0 -4.0 0.0 5.543277 -4.0 -2.296101 2 24 6.0 0.0 0.0 5.543277 0.0 -2.296101 2 24 5.543277 -4.0 -2.296101 4.242641 -4.0 -4.242641 2 24 5.543277 0.0 -2.296101 4.242641 0.0 -4.242641 2 24 4.242641 -4.0 -4.242641 2.296101 -4.0 -5.543277 2 24 4.242641 0.0 -4.242641 2.296101 0.0 -5.543277 2 24 2.296101 -4.0 -5.543277 0.0 -4.0 -6.0 2 24 2.296101 0.0 -5.543277 0.0 0.0 -6.0 2 24 0.0 -4.0 -6.0 -2.296101 -4.0 -5.543277 2 24 0.0 0.0 -6.0 -2.296101 0.0 -5.543277 2 24 -2.296101 -4.0 -5.543277 -4.242641 -4.0 -4.242641 2 24 -2.296101 0.0 -5.543277 -4.242641 0.0 -4.242641 2 24 -4.242641 -4.0 -4.242641 -5.543277 -4.0 -2.296101 2 24 -4.242641 0.0 -4.242641 -5.543277 0.0 -2.296101 2 24 -5.543277 -4.0 -2.296101 -6.0 -4.0 0.0 2 24 -5.543277 0.0 -2.296101 -6.0 0.0 0.0 2 24 -6.0 -4.0 0.0 -5.543277 -4.0 2.296101 2 24 -6.0 0.0 0.0 -5.543277 0.0 2.296101 2 24 -5.543277 -4.0 2.296101 -4.242641 -4.0 4.242641 2 24 -5.543277 0.0 2.296101 -4.242641 0.0 4.242641 2 24 -4.242641 -4.0 4.242641 -2.296101 -4.0 5.543277 2 24 -4.242641 0.0 4.242641 -2.296101 0.0 5.543277 2 24 -2.296101 -4.0 5.543277 0.0 -4.0 6.0 2 24 -2.296101 0.0 5.543277 0.0 0.0 6.0 3 16 0.0 -4.0 0.0 0.0 -4.0 6.0 2.296101 -4.0 5.543277 3 16 0.0 -4.0 0.0 2.296101 -4.0 5.543277 4.242641 -4.0 4.242641 3 16 0.0 -4.0 0.0 4.242641 -4.0 4.242641 5.543277 -4.0 2.296101 3 16 0.0 -4.0 0.0 5.543277 -4.0 2.296101 6.0 -4.0 0.0 3 16 0.0 -4.0 0.0 6.0 -4.0 0.0 5.543277 -4.0 -2.296101 3 16 0.0 -4.0 0.0 5.543277 -4.0 -2.296101 4.242641 -4.0 -4.242641 3 16 0.0 -4.0 0.0 4.242641 -4.0 -4.242641 2.296101 -4.0 -5.543277 3 16 0.0 -4.0 0.0 2.296101 -4.0 -5.543277 0.0 -4.0 -6.0 3 16 0.0 -4.0 0.0 0.0 -4.0 -6.0 -2.296101 -4.0 -5.543277 3 16 0.0 -4.0 0.0 -2.296101 -4.0 -5.543277 -4.242641 -4.0 -4.242641 3 16 0.0 -4.0 0.0 -4.242641 -4.0 -4.242641 -5.543277 -4.0 -2.296101 3 16 0.0 -4.0 0.0 -5.543277 -4.0 -2.296101 -6.0 -4.0 0.0 3 16 0.0 -4.0 0.0 -6.0 -4.0 0.0 -5.543277 -4.0 2.296101 3 16 0.0 -4.0 0.0 -5.543277 -4.0 2.296101 -4.242641 -4.0 4.242641 3 16 0.0 -4.0 0.0 -4.242641 -4.0 4.242641 -2.296101 -4.0 5.543277 3 16 0.0 -4.0 0.0 -2.296101 -4.0 5.543277 0.0 -4.0 6.0 4 16 0.0 -4.0 6.0 2.296101 -4.0 5.543277 2.296101 0.0 5.543277 0.0 0.0 6.0 4 16 2.296101 -4.0 5.543277 4.242641 -4.0 4.242641 4.242641 0.0 4.242641 2.296101 0.0 5.543277 4 16 4.242641 -4.0 4.242641 5.543277 -4.0 2.296101 5.543277 0.0 2.296101 4.242641 0.0 4.242641 4 16 5.543277 -4.0 2.296101 6.0 -4.0 0.0 6.0 0.0 0.0 5.543277 0.0 2.296101 4 16 6.0 -4.0 0.0 5.543277 -4.0 -2.296101 5.543277 0.0 -2.296101 6.0 0.0 0.0 4 16 5.543277 -4.0 -2.296101 4.242641 -4.0 -4.242641 4.242641 0.0 -4.242641 5.543277 0.0 -2.296101 4 16 4.242641 -4.0 -4.242641 2.296101 -4.0 -5.543277 2.296101 0.0 -5.543277 4.242641 0.0 -4.242641 4 16 2.296101 -4.0 -5.543277 0.0 -4.0 -6.0 0.0 0.0 -6.0 2.296101 0.0 -5.543277 4 16 0.0 -4.0 -6.0 -2.296101 -4.0 -5.543277 -2.296101 0.0 -5.543277 0.0 0.0 -6.0 4 16 -2.296101 -4.0 -5.543277 -4.242641 -4.0 -4.242641 -4.242641 0.0 -4.242641 -2.296101 0.0 -5.543277 4 16 -4.242641 -4.0 -4.242641 -5.543277 -4.0 -2.296101 -5.543277 0.0 -2.296101 -4.242641 0.0 -4.242641 4 16 -5.543277 -4.0 -2.296101 -6.0 -4.0 0.0 -6.0 0.0 0.0 -5.543277 0.0 -2.296101 4 16 -6.0 -4.0 0.0 -5.543277 -4.0 2.296101 -5.543277 0.0 2.296101 -6.0 0.0 0.0 4 16 -5.543277 -4.0 2.296101 -4.242641 -4.0 4.242641 -4.242641 0.0 4.242641 -5.543277 0.0 2.296101 4 16 -4.242641 -4.0 4.242641 -2.296101 -4.0 5.543277 -2.296101 0.0 5.543277 -4.242641 0.0 4.242641 4 16 -2.296101 -4.0 5.543277 0.0 -4.0 6.0 0.0 0.0 6.0 -2.296101 0.0 5.543277
1 16 10.0 0.0 10.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud1.dat 1 16 -10.0 0.0 10.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud1.dat 1 16 10.0 0.0 -10.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud1.dat 1 16 -10.0 0.0 -10.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud1.dat
1 16 30.0 0.0 30.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud2.dat 1 16 -10.0 0.0 30.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud2.dat 1 16 30.0 0.0 -10.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud2.dat 1 16 -10.0 0.0 -10.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 stud2.dat
_______________________________________________ Leocad mailing list [email protected] https://list.gerf.org/listinfo/leocad
