View Single Post
  #7 (permalink)  
Old 09-12-2009, 04:30 AM
DeeCee DeeCee is offline
Newbie
 
Join Date: Aug 2007
Posts: 8
Default

As mentioned, the three points define a plane, so you can also find the equation of the plane in 3d and use that to find the Z of any X, Y point. A good way to find a plane equation is discussed at the following site:

Equation of a plane


I am working on a similar program and would be interested in knowing if you have an optimized routine to find the triangle holding the point. Do you just brute force search and test each triangle, or do you have a better way?
Reply With Quote