LDraw.org Discussion Forums
brick snapping - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: brick snapping (/thread-17249.html)



brick snapping - Christopher Hiller - 2015-09-16

Is there a general-purpose brick-snapping algorithm published anywhere?

I have some ideas around computer-generated LEGO models, and things would be much easier if I didn't have to figure it out myself.

Chris


Re: brick snapping - Roland Melkert - 2015-09-16

Currently there are four programs using some sort of snapping I know of, namely:

SR3DBuilder
LDCad
MocBuilder
JBrickBuilder

But they all do boil down to location definitions coupled with some sort of label (grouping) in order to match male/female pairs.

Only exception is my own LDCad, Smile, as that one uses the above method only as a fallback. I mainly try to describe general shapes (pen and holes) snap information wise.

As for implementing the data into a program it's basically about some frustum culling combined with matching rules etc.

If you search through the older posts on this forum you should be able to find some information about SR3DBuilder's format/methods written by its late author Sergio.
The spec for my LDCad's meta's is on my site.
And the author of MocBuilder wrote some documentation on his method also findable in the forum I think.


Re: brick snapping - Willy Tschager - 2015-09-17

There has been a lenghty discusion about:

http://forums.ldraw.org/showthread.php?tid=15433&pid=15433#pid15433

And the current LSB - LDraw Standards Board should work on the specs, but nothing has happened so far.

w.


Re: brick snapping - Christopher Hiller - 2015-09-17

OK, sounds like I may want to wait until the standards board comes up with something... I'm not in any hurry. Is there a mailing list or something for standards board news?