k, getting some strange results in collectPointFace. I have a mesh which is not being detected and a mouse over, but It should definitely be returning as a point in the triangle.
Below is the variables for the function at the point of failure. x -35 [0xffffffdd] y -104 [0xffffff98] pointCount 34 [0x22] pointTotal 3 pointCountX 2 pointCountY 2 i 16 [0x10] v0x -57.513030163542844 v0y -120.96888867306322 v1x 56.65896361456531 v1y -120.96888867306322 v2x -56.76439322221591 v2y -5.496926616013102 And it is falling over on this if statement if ((v0x*(y - v1y) + v1x*(v0y - y) + x*(v1y - v0y)) < -0.001) continue; But if you look the point is definitely within this face. Any help would be useful. I've attached the model again. Phil -- Phil Harvey [email protected] AIM: filrv ICQ: 354535 GTalk: [email protected]
PictureFrame.dae
Description: Binary data
