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:
Message is in Reply To:
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
|
|
|
|