Help me find a way of determining whether the point of the triangle in 3D.
version of the recalculation of the areas of triangles
s = (Sqrt(((y1-y0)* (z2-z0) -(z1-z0)* (y2-y0))^2.0 +((z1-z0)* (x2-x0) -(x1-x0)* (z2-z0))^2.0 +((x1-x0)* (y2-y0) -(y1-y0)* (x2-x0))^2.0 ) /2.0)
s1 = (Sqrt(((y1-y0)* (z-z0) -(z1-z0)* (y-y0))^2.0 +((z1-z0)* (x-x0) -(x1-x0)* (z-z0))^2.0 +((x1-x0)* (y-y0) -(y1-y0)* (x-x0))^2.0 ) /2.0)
s2 = (Sqrt(((y-y0) * (z2-z0) -(z-z0) * (y2-y0))^2.0 +((z-z0) * (x2-x0) -(x1-x0)* (z2-z0))^2.0 +((x-x0) * (y2-y0) -(y-y0) * (x2-x0))^2.0 ) /2.0)
s3 = (Sqrt(((y1-y) * (z2-z) -(z1-z) * (y2-y))^2.0 +((z1-z) * (x2-x) -(x1-x) * (z2-z))^2.0 +((x1-x) * (y2-y) -(y1-y) * (x2-x))^2.0 ) /2.0)
dt = 0.0001
uu = abs(s- (s1+s2+s3) )
if uu < dt then intriangle=1
is not suitable because does not work with all the triangles.
.....already beside..... for all