Hello
In my project, the user needs to pick an object in a scene, and then the edge information about the actual face picked is needed. I am tantalizingly close, but I cannot seem to put together the different pieces.
In vkRayIntersection we have a number of fields that show up in AutoComplete, but are not documented
- geomPrimitive
- featureIndex
- numPointInFeature
- polygonTriangleIndex
- ptCoeff
- ptIndex
My guess is that these may link up somehow to give me the geometry information I need to access the face data using (for example):
VertexNUV* vertData = (VertexNUV*)geomPrimitive.LockVertices(0, geomPrimitive.GetVerticesCount(), 0, 0);
// Do someting with the vertices....
geomPrimitive.UnlockVertices(0);
...
uint16* indices = geomPrimitive.LockIndices(0, prim.GetIndicesCount(), FLockFlags::fReadOnly);
// Do someting with the indices....
geomPrimitive.UnlockIndices();
My question is: how do those returned fields in vkRayIntersection match up to indexes/vertices in the geomPrimitve?
Thanks for the help!


