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 / 2979
2978  |  2980
Subject: 
Re: Hidden surface removal, and vertex order in part/primitive DAT files
Newsgroups: 
lugnet.cad.dev
Date: 
Sat, 2 Oct 1999 07:45:12 GMT
Viewed: 
625 times
  
What if say a complient file contains anything starting with "0 CW". Any
program dealing with this information could just scan for "0 CW*". We also
could use a tag "0 AW*" if why ever the orientation is not clock-wice but
anti-clockwice .... I think a program could deal with that also (just the
sign is different !?).

So if we can define this as a standard, I will build this into MLCad and
Version1.5 and above could make use of this feature (which should speed up
drawing a little bit). By the way any idea how many parts already have this
tag?

Mike

Leonardo Zide wrote in message <37F52F67.5158EEF2@centroin.com.br>...
Gary Williams wrote:

I'd vote for CW for two reasons:

1) 'Clockwise' is shorter than 'counterclockwise'.

I can't argue with that :)

2) CW is used more often than CCW in rendering applications (to my
knowledge) because the normal of a CW-defined polygon points outward,
instead of inward.

No way ! The front faces are CCW in 3DS Max, and quoting the OpenGL
1.2 specs. for glFrontFace() "mode: Specifies the orientation of
front-facing polygons. GL_CW and GL_CCW are accepted. The initial value
is GL_CCW."

Just use your right hand instead of the left and you'll get outward
normals. Do things just like when you try to imagine the signal of the
cross-product between two vectors.

I'd also suggest that the standard comment read '0 CW' instead of '0
CW-compliant'.  Less chance for typographical error if the file was • created
manually.

You can also save a few bytes using only 0 (C)CW.

Leonardo





Message has 1 Reply:
  Re: Hidden surface removal, and vertex order in part/primitive DAT files
 
Michael Lachmann wrote in message ... (...) I retract my earlier suggestion. I'd prefer to test for '0 CW-compliant' than '0 CW*' because checking for an exact string match is usually easier. Not supporting wildcards also promotes consistency. (...) (25 years ago, 2-Oct-99, to lugnet.cad.dev)

Message is in Reply To:
  Re: Hidden surface removal, and vertex order in part/primitive DAT files
 
(...) I can't argue with that :) (...) No way ! The front faces are CCW in 3DS Max, and quoting the OpenGL 1.2 specs. for glFrontFace() "mode: Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is (...) (25 years ago, 1-Oct-99, to lugnet.cad.dev)

56 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