A general geometry problem.
I'm trying to test some physics problem.I need to know if a point is in certain 3d volume enclosed by a model.I've tried to implement ray cast algo in 3d but I'm having problems.
I wish some one could explain me a better way to do it.
when you say ray cast algo, do you mean the algorithm where you intersect a ray from the point under consideration and compute the number of intersections with the object. In case of an odd number of intersections the point is inside the body and when the number of intersections is even the point is outside.
This seems to be the best method, I have been using this algorithm for years. What exactely seems to be your problem?