I'm trying to implement the Quick hull algorithm for computing the 3D convex hull. The problem is that I need to know if a point can "see" a given surface.
The surface has a direction clockwise or counter clockwise direction.
I wrote a small opengl program to illustrate the algorithm operation graphically.
I tried various equations that I saw other algorithms use (normalized cross product, distance of the dot from the plane)
They all led to the wrong step being taken in the algorithm. Meaning they decided a certain surface was visible from the point(which you could see graphically it isn't)
An example for a surface or a "face".
e1 = 0, 0, 0 to 10, 0, 0
e2 = 10, 0, 0 to 10, 10, 0
e3 = 10, 10, 0 to 0, 10, 0
e4 = 0, 10, 0 to 0, 0, 0
<---------/\
|| ||
|| ||
|| ||
\/--------->
lets say that I have two points and I would like to know which side of the surface they are located on.
p1 = -1, -1, -1 p2 = 1, 1, 1
Any help would be much appreciated.