On 19/12/2014 at 15:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15,16
Platform: Mac OSX ;
Language(s) : C++ ;
---------
I'm using GetPixelInfoPoint in a tool to get information about vertexes of an object that are inside an area.
The information is returned inside a ViewportPixel structure and the vertex is returned in variable i.
But if the x,y coordinates provided in GetPixelInfoPoint don't match with any vertex of the object, the i variable returns 0.
However, the x,y coordinates could match the vertex number 0 of the object.
How can I know if a value of zero in the i variable means that there is no vertex in that coordinate or if it is reporting vertex number 0?