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 / 7648
7647  |  7649
Subject: 
Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 8 Aug 2002 22:03:03 GMT
Viewed: 
855 times
  
In lugnet.cad.dev, Anders Isaksson writes:
"Don Heyse" <dheyse@hotmail.spam.go.away.com> skrev i meddelandet
news:H0I44E.2vE@lugnet.com...

However, like I said, if you find something that works, post the code
or the algorithm and you'll be my hero.  I don't think I'll ever add
code to parse the BFC meta-commands in ldglite.  (I just don't like
them).  But I will add code that BFCs parts automatically if someone
comes up with it.

An idea:

Drawing with a software Z-buffer it's trivial to note _which_ polygons are
the finally visible ones (at every pixel). Those are on the outside.

So, take a part, look at it from a lot of angles (at least 8, probably 144
or more...), and make notes of the outside polygons, then correct their
winding if necessary.

Caveat: An incorrect part, where you can see into the 'material' will get
too many polygons marked as 'outside'.

Will not work for real-time use, but maybe for batch-processing the parts...

Also, once you know the direction for one (or more) polygons, any polygons
that share an edge can have their direction determined.  If polygon #1 has
wrapping ABCD, and polygon #2 has vertices ABEF, then polygon #2's wrapping
will involve a B->A transition.

Steve



Message has 1 Reply:
  Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
 
(...) Or I could say that the first polygon in a part must be wound correctly and then proceed from there. (22 years ago, 8-Aug-02, to lugnet.cad.dev)

Message is in Reply To:
  Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
 
"Don Heyse" <dheyse@hotmail.spam....away.com> skrev i meddelandet news:H0I44E.2vE@lugnet.com... (...) An idea: Drawing with a software Z-buffer it's trivial to note _which_ polygons are the finally visible ones (at every pixel). Those are on the (...) (22 years ago, 8-Aug-02, to lugnet.cad.dev)

18 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