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 / 7632
7631  |  7633
Subject: 
Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 7 Aug 2002 21:31:38 GMT
Viewed: 
467 times
  
In lugnet.cad.dev, Carsten Schmitz writes:
Hello Orion,

to program a plugin like that isn't too easy.

Tell me about it.

I wish i could help but I am
an math idiot ;)
Maybe someone else can help in this matter?

I think have the math right for determining polygon winding. The problem is
this, how do can I traverse the polygonal faces of a convex or concave
polyhedron(a part) and know that I'm looking at said polygon from the
outside of the part (as opposed to the inside).  My plugin works great for
convex parts not so great for parts with concave portions.


-Orion



Message has 1 Reply:
  Re: Detemining Polygon Winding (Was: New Plugin for LDDesignPad)
 
The simple algorithm: Project a normal from any vertex of the polygon to some point far beyond the object. Count how many polygons this line segment intersects. If odd, the normal was pointing in, if even, the normal was pointing out. This assumes (...) (22 years ago, 7-Aug-02, to lugnet.cad.dev)

Message is in Reply To:
  Re: New Plugin for LDDesignPad
 
Hello Orion, to program a plugin like that isn't too easy. I wish i could help but I am an math idiot ;) Maybe someone else can help in this matter? Play well Carsten p.s.: I will put a link on my website as soon as I can spare some time. Work is (...) (22 years ago, 7-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