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 / 2956
2955  |  2957
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: CW/CCW, vertex sequence, co-planar, convex, (115kB)
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 1 Oct 1999 14:02:26 GMT
Viewed: 
1170 times
  
Leonardo Zide wrote in message <37F383E1.CA6B8962@centroin.com.br>...
"Lars C. Hassing" wrote:
In addition to Leonardo's summary:
Because the "what is inside/outside" of e.g. 4-4cyli.dat depends on the
usage, and we don't want two sets of primitives, I think we need to
decide on a "0 CCW" or "0 FACE CCW"  or ?? keyword.
(see the discussion I started on Feb 4th 1999)

About that discussion, IMO it would be better to have *everything* CCW
instead of adding a keyword. Most primitives can have their faces
changed by using mirroring so we probably won't need to have 2 sets,
only make the current files have the same orientation.


I agree with John Van in that we need three keywords: CCW, CW, UNKNOWN.
As the rendering program is going to keep track of the number of mirrorings of
the transformations (or simply if the total transformation is a mirroring), we will
need a way to tell what is inside-out side of e.g. cylinder primitives.
Then STUD2.DAT could use:
0 CCW
1 16 0 -4 0 4 0 0 0 4 0 0 0 4 4-4cyli.dat
0 CW
1 16 0 -4 0 6 0 0 0 4 0 0 0 6 4-4cyli.dat

or maybe to make it easier to use for part authors:
1 16 0 -4 0 4 0 0 0 4 0 0 0 4 4-4cyli.dat
0 INSIDE-OUT 1
1 16 0 -4 0 6 0 0 0 4 0 0 0 6 4-4cyli.dat
0 INSIDE-OUT 0

Whether it will be:
"0 CCW", "0 CW", "0 UNKNOWN"
"0 FACE CCW", "0 FACE CW", "0 FACE UNKNOWN"
"0 ORIENTATION CCW", "0 ORIENTATION CW", "0 ORIENTATION UNKNOWN"
"0 INSIDEOUT 0", "0 INSIDEOUT 1"
I don't have any meaning about (though I don't like the first one :-)

A part with no keywords is interpreted like it had begun with "0 FACE UNKNOWN".
The only use for the UNKNOWN keyword I can see, is for a section of a part you
want to make compliant at a later time.
/Lars



Message has 3 Replies:
  Re: CW/CCW, vertex sequence, co-planar, convex, (115kB)  [DAT]
 
Lars: (...) [...] (...) This would demand a lot of work before people could start using programs that use this fact. (...) Right. (...) Just check the determinant of the rotation matrix (but you know that I suppose). (...) I would rather use some (...) (25 years ago, 1-Oct-99, to lugnet.cad.dev)
  Re: CW/CCW, vertex sequence, co-planar, convex, (115kB)
 
Lars C. Hassing wrote in message <938787015.279086@ns.cci.dk>... (...) of (...) we will (...) Hold on. Why not just have a button in the CAD program to turn the part inside-out by automatically manipulating the orientation matrix in the parent dat (...) (25 years ago, 1-Oct-99, to lugnet.cad.dev)
  Re: CW/CCW, vertex sequence, co-planar, convex, (115kB)
 
(...) Why not simply: (...) Assuming the primitives are all defined so their faces are turned outward. I would see allowing both CW and CCW as a convenience for parts authors. There's no real difference between one way and the other. CW has a slight (...) (25 years ago, 1-Oct-99, to lugnet.cad.dev)

Message is in Reply To:
  Re: CW/CCW, vertex sequence, co-planar, convex, (115kB)
 
(...) When you draw a part with a pattern transparently, I guess it's not a good idea to remove the backfaces or you might not see the pattern from some angles. (...) About that discussion, IMO it would be better to have *everything* CCW instead of (...) (25 years ago, 30-Sep-99, to lugnet.cad.dev)

53 Messages in This Thread:












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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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