Are you looking at the trunk or one of the branches? I've disabled the connection code in the trunk until I have time to rewrite it because it was too slow and I wanted to expand it to add some of the stuff that the guy from LeoCAM did. I've never used the connection code for connecting pieces, it was used only for detecting studs that are hidden inside other pieces and not drawing them.
I wrote it a long time ago and I didn't really know what I was doing but from what I remember, whenever a new piece was added to a project it would add its connection information to a list of all piece connections in the project class and calculate what pieces it's connected to. You might want to take a look at LeoCAM, it does exactly the kind of thing you're trying to do. Leonardo On Aug 10, 2007, at 8:58 AM, tiago santos wrote: > Hello i'm developing a sketch based application for making Lego, > for my graduation project, i've picked up some of your code, > because i think its the best application in this area, and since it > is open-source i decided take advantage of some your work. > > Just some observations > 1- The connections in Piece -> CONNECTION* m_pConnections; > came from the project when you add a piece, then sends to the new > piece all the connections... > > 2- I presume that in PieceInfo ( CONNECTIONINFO* > m_pConnections;) have all the studs (type = 0) and invert studs > (type = 0) of a determine piece. > > Now when im moving a piece over another one, I think that these > connections arent be updated, i've seen some code comented, in > CalculateConnection, it is suposed to be here that the pieces stick > together, right ? > > I wanted to have some kind of constrains in the pieces, for ex: if > i move the bottom piece, those that are connected to her also move. > Just like real live :) > > Thank you for your support :D > Tiago Santos > > _______________________________________________ > Leocad mailing list > [email protected] > https://list.gerf.org/listinfo/leocad ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ Leocad mailing list [email protected] https://list.gerf.org/listinfo/leocad
