To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 13728
Subject: 
LDLite and LDS (Was: Call for GUI part editor)
Newsgroups: 
lugnet.cad
Date: 
Tue, 18 Apr 2006 21:52:42 GMT
Viewed: 
4158 times
  
In lugnet.cad, Steve Bliss wrote:
In lugnet.cad, Kevin L. Clague wrote:
  I've been up to my ears in NXT land, in case anyone noticed or wondered about
my absence.  Needless to say there are "unoffical" Ldraw parts being developed.

Yeah. :)

  I've increased my skill set as a part author (previously I've only modified
parts that were there.)  Contrary to the recommnendations I did my work in
MLCad.  Now I have a better understanding why a text editor might be a good
alternative.

BTW, there are at least 2 reason not to use MLCAD to create parts which you want
to contribute to LDraw.org:

1. (General reason) it's more work than doing it in an enhanced text editor.
2. (Specifically) MLCAD does things to the file that are not allowed in official
part files, so you have to clean up the code afterwards (and then you can no
longer edit it in MLCAD).

  I don't have the time, *but* if a 3D GUI editor (e.g. LeoCAD or MLCad) were to
provide the concept of identified (maybe named) verticies, intersections of
planes with planes, cylinders with circles, etc.... I think it would be much
easier to create and edit parts.

I don't know if this helps, but we already have language to support this
concept.  The LDLite language extensions support the definition of named points
and matrices (and colors, but that's not so useful in this context).  In LDLite
code, you can create a file like:

0 POINT A1 10 0 10
0 POINT B2 -10 -10 -10
0 POINT C3 0 -10 0
0 POINT D4 10 -10 10
3 1 A1 B2 C3
3 2 B2 C3 D4

I had no idea of that. How long has this been an LDLite feature? It reminds at
least me of LDS code. The same thing in LDS would look like this:
P1 10 0 10
P2 -10 -10 -10
P3 0 -10 0
P4 10 -10 10
3 1 P1 P2 P3
3 2 P2 P3 P4

Is it possible to let, say C3's and D4's y values follow B2? Like, in LDS, you
can change the code to:
P2 -10 -10 -10
P3 0 y2 0
P4 10 y2 10
and you only have to edit the y value of P2, then y3 and y4 will also follow. If
so, that would be really handy.

Even if the user were not aware of the point-names, I could see this format
being useful for programs that use point-lists.

It also typically results in smaller files than straight DAT code.

But not as small as the corresponding LDS code. :)


Steve


Subject: 
Re: LDLite and LDS (Was: Call for GUI part editor)
Newsgroups: 
lugnet.cad
Date: 
Tue, 18 Apr 2006 22:07:10 GMT
Viewed: 
4489 times
  
In lugnet.cad, Tore Eriksson wrote:

Is it possible to let, say C3's and D4's y values follow B2? Like, in LDS, you
can change the code to:
P2 -10 -10 -10
P3 0 y2 0
P4 10 y2 10
and you only have to edit the y value of P2, then y3 and y4 will also follow. If
so, that would be really handy.

That's cool. Probably a more versatile notation would be:

P2 -10 -10 -10
P3 0 P2.y 0
P4 10 P2.y 10

Can you also do chained values? eg:

P2 -10 -10 -10
P3 0 y2 0
P4 10 y3 10

ROSCO


Subject: 
Re: LDLite and LDS (Was: Call for GUI part editor)
Newsgroups: 
lugnet.cad
Date: 
Tue, 18 Apr 2006 23:49:45 GMT
Viewed: 
4310 times
  
Wow, Legos are getting religious?

http://www.lds.org/

;)


Subject: 
Re: LDLite and LDS (Was: Call for GUI part editor)
Newsgroups: 
lugnet.cad
Date: 
Wed, 19 Apr 2006 00:07:51 GMT
Viewed: 
4436 times
  
In lugnet.cad, Ross Crawford wrote:
In lugnet.cad, Tore Eriksson wrote:

Is it possible to let, say C3's and D4's y values follow B2? Like, in LDS, you
can change the code to:
P2 -10 -10 -10
P3 0 y2 0
P4 10 y2 10
and you only have to edit the y value of P2, then y3 and y4 will also follow. If
so, that would be really handy.

That's cool. Probably a more versatile notation would be:

P2 -10 -10 -10
P3 0 P2.y 0
P4 10 P2.y 10

Yes, but I try to keep it as short as possible. :)


Can you also do chained values? eg:

P2 -10 -10 -10
P3 0 y2 0
P4 10 y3 10

ROSCO

No problems at all. You may also rotate 90 deg's by assigning a -z at the x and
x at z if you like... Almost anything. These are also legal:

P2 -10 -10 -10
P3 0 y2 0
P4 0-z3 y3+4 x3
c=16
FOR i=-200 TO 200 STEP 20
1 c  i 0 0  1 0 0  0 1 0  0 0 1  stud.dat
NEXT i
btw, "1 c  i 0 0  1 0 0  0 1 0  0 0 1  stud.dat" is too long for lazy me to
write, so LDS does that for me if I just write:
stud.dat c i 0 0

See more example at:
http://web.telia.com/~u66203131/LDraw/lds/ldssyntx.htm

/Tore


Subject: 
Re: LDLite and LDS (Was: Call for GUI part editor)
Newsgroups: 
lugnet.cad
Date: 
Wed, 19 Apr 2006 01:04:10 GMT
Viewed: 
4224 times
  
In lugnet.cad, Tore Eriksson wrote:
In lugnet.cad, Steve Bliss wrote:
I don't know if this helps, but we already have language to support this
concept.  The LDLite language extensions support the definition of named points
and matrices (and colors, but that's not so useful in this context).  In LDLite
code, you can create a file like:

0 POINT A1 10 0 10
0 POINT B2 -10 -10 -10
0 POINT C3 0 -10 0
0 POINT D4 10 -10 10
3 1 A1 B2 C3
3 2 B2 C3 D4

I had no idea of that. How long has this been an LDLite feature?

Since a very long time; LDLite 1.6 supported it, and it wasn't the first version
to do so.  My LDLite 1.6 files are dated March, 1999.

The LDLite meta-commands are very useful -- I used them when I modeled the
soccer ball, way back when.

It reminds at
least me of LDS code. The same thing in LDS would look like this:
P1 10 0 10
P2 -10 -10 -10
P3 0 -10 0
P4 10 -10 10
3 1 P1 P2 P3
3 2 P2 P3 P4

Is it possible to let, say C3's and D4's y values follow B2? Like, in LDS, you
can change the code to:
P2 -10 -10 -10
P3 0 y2 0
P4 10 y2 10
and you only have to edit the y value of P2, then y3 and y4 will also follow. If
so, that would be really handy.

No, you can't do that with the LDLite statements -- each named point is atomic
(the component values can't be accessed), and there's no expression language --
the actual value of a named point is really just a text string.

Not to say it would be a big stretch to define a syntax like B2.y, to access the
y component of B2.  But it's not part of the existing definition.

Even if the user were not aware of the point-names, I could see this format
being useful for programs that use point-lists.

It also typically results in smaller files than straight DAT code.

But not as small as the corresponding LDS code. :)

True.  But the LDLite code has the advantage of having a straightforward
translation to standard DAT code.

Steve


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR