, Sr. Member
hi
as far as i know there is no BaryCentrictest class available yet, so you must do the calculation yourself. cant give you much advice, because i just happend to learn about this the last days too.
look inside the HitTestRenderer.as in the function “getPreciseDetails” it uses barycentric coordinates to calculate if a Vector3D is inside a triangle in 3d space. i dont know if this calculation is done 100% correct, since the HitTestrenderer happens to not always (but in most cases) work correct.
For the purpose of getting the uv-triangle for a given uv, you wouldnt need to do this calculation in 3d, but as far as i understand, the concept and the math for 3d and 2d Barycentric coordinates are pretty much the same.
So doing some research about BaryCentric-Coordinates and looking into the HittestRenderer should give you a place to start.