On 01/07/2016 at 21:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Mac ;
Language(s) : C++ ;
---------
Is there any easy way of converting a UV coordinate to a polygon index?
Thus far, the only thing I've been able to figure out is to iterate over all the data of a UVWTag using the UVWTag::Get() function as described in the SDK documents, then test to see whether or not the UV coordinate I'm trying to locate actually falls within the triangle/quadrangle defined by the UVWStruct.
This is, of course, very time consuming, since I have to iterate over all the polygons in the UVWTag each and every time my code executes. Is there some other quicker way of handling this?
-CMPX