Results 1 to 12 of 12

Thread: Determine if two faces are "pointing" towards eachother

Threaded View

  1. #1

    Thread Starter
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    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.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width