Subject:
|
Re: Hidden surface removal, and vertex order in part/primitive DAT files
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 27 Sep 1999 13:09:10 GMT
|
Viewed:
|
448 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Chris Dee wrote in message ...
> I'd be mighty impressed, too, if you could do this automatically. For solid
> polyhedra, it's not too difficult as you can assume that the origin of the
> solid is within the material, but most Lego parts are re-entrent (ie. partly
> hollow), so there is not a single reference point which is inside the plastic.
> In the simplest case, imagine a 1x1 brick. For each outer side face there is a
> parallel inner face. These would need complmentary vertex sequences.
The algorithm I came up with yesterday will handle such cases.
Basically for every face in a polygon, I'll pass a ray through it and count
the number of polygons that it passes through. If there are an even number
of penetrations, then it should be safe to assume that the first one
encountered is an outside face, the next is inside, the next outside, etc.
If there are an odd number of penetrations, then the part isn't closed (such
as a stud with no bottom).
-GW
|
|
Message has 1 Reply:
Message is in Reply To:
56 Messages in This Thread: ![Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (26-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -John VanZwieten (27-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Chris Dee (27-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (27-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (30-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (30-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (30-Sep-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (2-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (3-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (3-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (3-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (3-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (3-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (3-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (5-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (6-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (6-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (5-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (6-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (6-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (6-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (7-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (15-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jean-Pierre Paris (21-Nov-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (27-Sep-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (27-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (27-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (27-Sep-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (28-Sep-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (27-Sep-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Michael Lachmann (1-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jacob Sparre Andersen (1-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (1-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (1-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (1-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Leonardo Zide (1-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Michael Lachmann (2-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (2-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Jacob Sparre Andersen (2-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Gary Williams (2-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (3-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Michael Lachmann (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (4-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (3-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Michael Lachmann (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Interpreting the proposed FACE meta-command -Gary Williams (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Interpreting the proposed FACE meta-command -Jacob Sparre Andersen (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Interpreting the proposed FACE meta-command -Gary Williams (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Interpreting the proposed FACE meta-command -Steve Bliss (4-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Interpreting the proposed FACE meta-command -Steve Bliss (4-Oct-99 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Interpreting the proposed FACE meta-command -Gary Williams (4-Oct-99 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Hidden surface removal, and vertex order in part/primitive DAT files -Steve Bliss (4-Oct-99 to lugnet.cad.dev)](/news/x.gif)
- 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
|
|
|
|