To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 8945
8944  |  8946
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: How exactly DO I code optional lines, anyway?
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 22 May 2003 03:21:26 GMT
Viewed: 
922 times
  
In lugnet.cad.dev, Lance Hopenwasser writes:
In reading past posts, it seems that putting in optional lines is
encouraged, but I have not been able to find any information on the proper
way of using them.

First, clearly I use them on outside curves, but I was not able to determine
definitively if they should be used on inside curves.

Second, I have not been able to find any info on how to determine what the
third and fourth points are supposed to be.  From looking at a number of
models, usually these points are set to one point in each of the adjacent
quads/triangles from one of the endpoints of the line.  But this does not
always seem to be the case.  Sometimes the points are in the same plane as
the endpoint, but sometimes not.  Sometimes the two points seem to be
totally unrelated and are halfway across the world from the optional line.
Any guidance in this would be most appreciated!  (This might be a really
good topic for one of those tutorials).

Thanks!
--Lance--
I'll drop a few quick secrets on how I use conditional lines.
First off, I use LDAO and L3lab for the largest amount of part modeling.
Usually check occasionally with LDview and Ldraw.
So if you are using MLCad, and do not have LDAO, I would reccommend using
notepad or LDDP(Has a very handy color coding to the numbers) along with
L3lab or ldview. (Make sure the viewer polling options are turned on if you
are using notepad)

ok, here we go...

A few sample lines,
first a couple of quads with a conditional line between them
  4 38  21.0866 0 4.5922  20.1627 1 4.2095  21 1 0  22 0 0
  4 39  18.4853 0 8.4853  17.7782 1 7.7782  20.1627 1 4.2095  21.0866 0 4.5922

Pick your coordinates and make two lines. As shown below, the line we want
to show up is color 4(red) and the operational clipping line is 2(bright
green? or yellow)
  2 4  20.1627 1 4.2095  21.0866 0 4.5922
  2 2  17.7782 1 7.7782  21 1 0
Ok, after we make our lines, change the first '2' in the first line to a 5,
then go to the end of the line and press delete, the following '2 2...' line
should pop up to the end of the first line. Delete the '2 2' from the second
line. You should get the following line;
0 5 4  20.1627 1 4.2095  21.0866 0 4.5922  17.7782 1 7.7782  21 1 0
Next, turn the image in the viewer and check to see if the line is working
correctly. if it doesn't seem to come on and go off at the right times swap
the last 2 coordinates (x3 y3 z3  with  x4 y4 z4)
(Ref...  Linetype  Color  x1 y1 z1  x2 y2 z2  x3 y3 z3  x4 y4 z4)

Ok, now a triangle. (Both of these examples can be viewed at the same time,
I have offset them.)
  3 41  11.0866 0 4.5922  10.1627 1 4.2095  11 1 0
  3 42  11.0866 0 4.5922  11 1 0  11 -2 3
  2 4  11 1 0  11.0866 0 4.5922
  2 2  10.1627 1 4.2095  11 -2 3
0 5 4   11 1 0  11.0866 0 4.5922   10.1627 1 4.2095  12 -1 1

Oh, yeah, don't forget to comment '0' the linetype 2's and uncomment the
linetype 5 when testing.

Let me know if you need more.

Paul



Message is in Reply To:
  How exactly DO I code optional lines, anyway?
 
In reading past posts, it seems that putting in optional lines is encouraged, but I have not been able to find any information on the proper way of using them. First, clearly I use them on outside curves, but I was not able to determine definitively (...) (21 years ago, 21-May-03, to lugnet.cad.dev)

4 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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