Special:
|
[DAT] (requires LDraw-compatible viewer)
|
Subject:
|
Plz help! - type "5" line in LDraw
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Thu, 27 Jan 2000 20:53:49 GMT
|
Viewed:
|
732 times
|
| |
| |
In spite of the recent posts re: Type "5" Lines in LEdit/LDraw,
I'm still confused as to how to use these conditional lines.
To help illustrate my (probably flawed) understanding,
I'll be referencing the enclosed DAT file (an unofficial primitive
I'm making for a CONE with an inner radius of ONE;
it corresponds to the primitive "RING1.DAT").
One of the lines that may or may not be needed,
depending on the actual orientation at the time of rendering,
is between the points (0,0,1) and (0,1,2).
Now, as I understand it, there are four other points
NEAR this line-that-may-or-may-not-be-needed
but are not actually ON the line.
These four points are the next two points
on either side of the appropriate endpoint
on either circle.
That is, for the point (0,0,1),
its two points are (-0.3827,0,0.9239)
and (0.3827,0,0.9239),
and for the point (0,1,2),
its two points are (-0.7654,1,1.8478)
and (0.7654,1,1.8478).
And, if I understand correctly,
it is these four points which will determine
whether or not LDraw should render a line
between (0,0,1) and (0,1,2).
It is at this point (pardon the pun)
that my brain locks up :-P and I get confused.
Please help!
Thanks,
Franklin
0 Primitive Cone (Inner Radius = 1)
0 Unofficial Primitive
0 Author: Franklin W. Cain (fwcain@yahoo.com)
0
4 16 0 0 -1 0 1 -2 -0.7654 1 -1.8478 -0.3827 0
-0.9239
4 16 0 0 -1 0 1 -2 0.7654 1 -1.8478 0.3827 0
-0.9239
4 16 0 0 1 0 1 2 -0.7654 1 1.8478 -0.3827 0
0.9239
4 16 0 0 1 0 1 2 0.7654 1 1.8478 0.3827 0
0.9239
0
4 16 -0.3827 0 -0.9239 -0.7654 1 -1.8478 -1.4142 1 -1.4142 -0.7071 0
-0.7071
4 16 0.3827 0 -0.9239 0.7654 1 -1.8478 1.4142 1 -1.4142 0.7071 0
-0.7071
4 16 -0.3827 0 0.9239 -0.7654 1 1.8478 -1.4142 1 1.4142 -0.7071 0
0.7071
4 16 0.3827 0 0.9239 0.7654 1 1.8478 1.4142 1 1.4142 0.7071 0
0.7071
0
4 16 -0.7071 0 -0.7071 -1.4142 1 -1.4142 -1.8478 1 -0.7654 -0.9239 0
-0.3827
4 16 0.7071 0 -0.7071 1.4142 1 -1.4142 1.8478 1 -0.7654 0.9239 0
-0.3827
4 16 -0.7071 0 0.7071 -1.4142 1 1.4142 -1.8478 1 0.7654 -0.9239 0
0.3827
4 16 0.7071 0 0.7071 1.4142 1 1.4142 1.8478 1 0.7654 0.9239 0
0.3827
0
4 16 -0.9239 0 -0.3827 -1.8478 1 -0.7654 -2 1 0 -1 0 0
4 16 0.9239 0 -0.3827 1.8478 1 -0.7654 2 1 0 1 0 0
4 16 -0.9239 0 0.3827 -1.8478 1 0.7654 -2 1 0 -1 0 0
4 16 0.9239 0 0.3827 1.8478 1 0.7654 2 1 0 1 0 0
0
0 5 24 0 0 -1 0 1 -2 x3 y3 z3 x4 y4 z4
0 5 24 0 0 1 0 1 2 x3 y3 z3 x4 y4 z4
0
0 5 24 -0.3827 0 -0.9239 -0.7654 1 -1.8478 x3 y3 z3 x4 y4 z4
0 5 24 0.3827 0 -0.9239 0.7654 1 -1.8478 x3 y3 z3 x4 y4 z4
0 5 24 -0.3827 0 0.9239 -0.7654 1 1.8478 x3 y3 z3 x4 y4 z4
0 5 24 0.3827 0 0.9239 0.7654 1 1.8478 x3 y3 z3 x4 y4 z4
0
0 5 24 -0.7071 0 -0.7071 -1.4142 1 -1.4142 x3 y3 z3 x4 y4 z4
0 5 24 0.7071 0 -0.7071 1.4142 1 -1.4142 x3 y3 z3 x4 y4 z4
0 5 24 -0.7071 0 0.7071 -1.4142 1 1.4142 x3 y3 z3 x4 y4 z4
0 5 24 0.7071 0 0.7071 1.4142 1 1.4142 x3 y3 z3 x4 y4 z4
0
0 5 24 -0.9239 0 -0.3827 -1.8478 1 -0.7654 x3 y3 z3 x4 y4 z4
0 5 24 0.9239 0 -0.3827 1.8478 1 -0.7654 x3 y3 z3 x4 y4 z4
0 5 24 -0.9239 0 0.3827 -1.8478 1 0.7654 x3 y3 z3 x4 y4 z4
0 5 24 0.9239 0 0.3827 1.8478 1 0.7654 x3 y3 z3 x4 y4 z4
0
0 5 24 -1 0 0 -2 1 0 x3 y3 z3 x4 y4 z4
0 5 24 1 0 0 2 1 0 x3 y3 z3 x4 y4 z4
0
0 for debug/illustration only:
0
2 24 0 0 -1 0 1 -2
2 24 0 0 1 0 1 2
0
2 24 -0.3827 0 -0.9239 -0.7654 1 -1.8478
2 24 0.3827 0 -0.9239 0.7654 1 -1.8478
2 24 -0.3827 0 0.9239 -0.7654 1 1.8478
2 24 0.3827 0 0.9239 0.7654 1 1.8478
0
2 24 -0.7071 0 -0.7071 -1.4142 1 -1.4142
2 24 0.7071 0 -0.7071 1.4142 1 -1.4142
2 24 -0.7071 0 0.7071 -1.4142 1 1.4142
2 24 0.7071 0 0.7071 1.4142 1 1.4142
0
2 24 -0.9239 0 -0.3827 -1.8478 1 -0.7654
2 24 0.9239 0 -0.3827 1.8478 1 -0.7654
2 24 -0.9239 0 0.3827 -1.8478 1 0.7654
2 24 0.9239 0 0.3827 1.8478 1 0.7654
0
2 24 -1 0 0 -2 1 0
2 24 1 0 0 2 1 0
0
0 for debug/orientation only:
0
2 14 0 0 0 1 0
2 14 -2 0 0 2 0 0
2 14 0 0 -2 0 0 2
0
0 end of file
0
Franklin W. Cain | fwcain@yahoo.com
| http://members.tripod.com/fcain
| http://members.tripod.com/fcain/lego/want_list.html
----------------------------------------------------------------------
USE OF MY EMAIL ADDRESS FOR UNSOLICITED COMMERCIAL PURPOSES
IS _STRICTLY_ PROHIBITED. . . . MAKE MY (LAWYER'S) DAY, PUNK!
|
|
Message has 2 Replies: | | Re: Plz help! - type "5" line in LDraw
|
| Franklin: [ A good explanation of the use of type 5 lines ] (...) Yes, but you can only use two. You should get the same result if you use either the two points related to (0,0,1) or the two points related to (0,1,2). It would probably even work if (...) (25 years ago, 28-Jan-00, to lugnet.cad.dev)
| | | Re: Plz help! - type "5" line in LDraw [DAT]
|
| (...) It sounds like you've got the basic idea of the conditional line command. Like Jacob said, use either the points related to point 1 or point 2. In your example, write either: 5 24 0 0 1 0 1 2 -0.3827 0 0.9239 0.3827 0 0.9239 or 5 24 0 0 1 0 1 (...) (25 years ago, 31-Jan-00, to lugnet.cad.dev)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|