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 / 7647
7646  |  7648
Subject: 
Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 8 Aug 2002 21:04:11 GMT
Viewed: 
795 times
  
"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...

--
Anders Isaksson, Sweden
BlockCAD:  http://user.tninet.se/~hbh828t/proglego.htm
Gallery:   http://user.tninet.se/~hbh828t/gallery/index.htm



Message has 1 Reply:
  Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
 
(...) 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 (...) (22 years ago, 8-Aug-02, to lugnet.cad.dev)

Message is in Reply To:
  Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
 
(...) OK, but if the quads and triangles don't form a single closed surface, or actually a bunch of closed surfaces, then the algorithm won't work. However, like I said, if you find something that works, post the code or the algorithm and you'll be (...) (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