WOW :P Didnt know that someone have doned that... Will see now what i'm going to do, if i can use it in my project, it'll will help alot :) Now i cant find the aplication (LeoCAM) anywere :( Ive google it, found the autor site: http://ima.udg.edu/~gonzalez/<http://ima.udg.edu/%7Egonzalez/>, but nothing there...
Since my project is more sketch oriented, i'm think of creating a 2D window, where the user can sketch the outlines of a piece, for the system to recognize. Now, the internal structure is a mesh. I know there is a function where I can see that a point intercepts a pieces. I'm thinking of process all the pieces, apply a mask (maybe a square filter). Then acording to what the user sketches, passes the filter, and check what pieces are acording to that pattern. Just an idea :P But a big thanks Tiago Santos 2007/8/11 > > > Message: 1 > Date: Fri, 10 Aug 2007 11:05:37 -0700 > From: Leonardo Zide <[EMAIL PROTECTED]> > Subject: Re: Piece:Connections and PieceInfo:Connections > To: [EMAIL PROTECTED] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > 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
