Wire instructions-leocad
gmane.comp.cad.leocad.user
_______________________________________________ Leocad mailing list Leocad@... https://list.gerf.org/listinfo/leocad
gmane.comp.cad.leocad.user
_______________________________________________ Leocad mailing list Leocad@... https://list.gerf.org/listinfo/leocad
I'm sorry I let that piece of spam through. Don't read it. Ciao! -- -- We are such stuff as dreams are made on and our little life is rounded with a sleep... -- Shakespeare, The Tempest, IV:i The Doctor What: Second Baseman http://docwhat.gerf.org/ docwhat *at* gerf *dot* org KF6VNC
_______________________________________________ Leocad mailing list Leocad@... https://list.gerf.org/listinfo/leocad
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 Leocad@... https://list.gerf.org/listinfo/leocad
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 > Leocad@... > 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 ______________________________________________________________________
Message: 1
Date: Fri, 10 Aug 2007 11:05:37 -0700
From: Leonardo Zide <leonardo-G44P+QClmSA39yzSjRtAkw@public.gmane.org>
Subject: Re: Piece:Connections and PieceInfo:Connections
To: leocad-bZt9XDzQtJM@public.gmane.org
Message-ID: <823A48BB-E5FA-4C08-8A6C-0858B105EE09-G44P+QClmSA39yzSjRtAkw@public.gmane.org>
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 Leocad@... https://list.gerf.org/listinfo/leocad
RSS Feed4 | |
|---|---|
12 | |
41 | |
12 | |
9 | |
1 | |
11 | |
1 | |
4 | |
3 | |
12 | |
21 | |
9 | |
1 | |
1 | |
3 | |
3 | |
5 | |
1 | |
10 | |
1 | |
1 | |
2 | |
6 | |
3 | |
1 | |
1 | |
11 | |
4 | |
4 | |
5 | |
4 | |
3 | |
20 | |
1 | |
9 | |
15 | |
43 | |
1 | |
1 | |
2 | |
1 | |
5 | |
16 | |
9 | |
12 | |
22 | |
2 | |
9 |