On Tue, Jul 16, 2013 at 3:37 PM, Johannes Schauer <[email protected]>wrote:
> was your prior email empty by accident? > Yes, I hit send by mistake. What happened to this early version of the generated library? > This was a long time ago, I don't think I used source control at that point so it's probably lost. > Thanks, that worked well! Does leocad read those LDraw files directly or > does > there exist another program which converts these LDraw files into the > leocad > format to create its built-in parts library? > LeoCAD uses a slightly different version of the source code I posted: it creates the data structures it needs in memory directly instead of generating a file and reading it back. (see the bottom of http://svn.leocad.org/branches/qtest/common/lc_library.cpp). The point of writing this library as C++ was to have LeoCAD be usable without any external files at all. While looking through the code I also noticed some other things: > > Would it not be easier to create one part for a single stud and include > that > into the other parts for each stud? > The original code was already written this way. If I had to write it from scratch with the purpose of creating a library for other LDraw programs then a stud primitive would make more sense. > Would it also not be easier to use quadrilaterals for the sides of the > bricks > instead of two triangles each? > LeoCAD doesn't use quads internally and since I was just porting existing code it would be more work to change it. > I would like to add some other simple parts like a "higher" bricks (like a > 1x2x5 brick) or corners (in brick as well as plate form). Would you accept > such > a patch? > > Would you accept a patch which adds simple slopes as well? > All patches are welcome.
_______________________________________________ Leocad mailing list [email protected] https://list.gerf.org/listinfo/leocad
