|
-
Oct 17th, 2011, 05:34 PM
#1
Determine if two faces are "pointing" towards eachother
Hey there.
The question in the title may sound weird, but I'm looking for a way to determine if the faces of two triangles "faces eachother" even the slightest.
The reason I need to know this is because I'm trying to write some logic for determining if a 3D mesh is convex or not.
In my attempts at this I have gotten as far as calculating the dot product (X) for the face normals of the two triangles in question:
If X <= 0 then the two normals are more or less pointing away from eachother, return false.
If X == 1 then the two normals are running parallell to eachother, return false.
If X > 0 && X < 1.... This is what I find tricky. There's something additional I have to do here to determine if the two normals (and thus also the faces) point towards eachother even the slightest.
Does my question make sense?
I'm very thankful for all the help and ideas I can get.
Last edited by Atheist; Oct 17th, 2011 at 05:47 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|