| | Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
|
|
(...) Yes but I'm not parsing primitive subfiles in my plugin, just quads and triangles. -Orion (22 years ago, 8-Aug-02, to lugnet.cad.dev)
|
|
| | 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)
|
|
| | Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
|
|
Portals. It's not backface culling, it's testing all polygons for visibility using possible rays through the openings, or from the sides of a bounding box. This is no longer culling based on front/back but true visibility that is computed once at (...) (22 years ago, 8-Aug-02, to lugnet.cad.dev)
|
|
| | Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
|
|
(...) Oops, I guess you caught me. I knew about that one but I'm too lazy to implement it. Isn't that the method used by MLCAD? (...) Yeah, probably. Seems like only yesterday I was all excited about some code snippet of his that I found on the (...) (22 years ago, 8-Aug-02, to lugnet.cad.dev)
|
|
| | 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)
|
|
| | 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)
|
|
| | 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)
|
|
| | Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
|
|
(...) Correcting the winding shouldn't be too bad -- if the L3 code is available (ie, look in the ldglite source code) -- check how Lars detects bad winding, and how he figured the (more) correct winding. Steve (22 years ago, 9-Aug-02, to lugnet.cad.dev)
|