HDK: VEX function querying geometric data

   7238   2   0
User Avatar
Member
48 posts
Joined: Sept. 2006
Offline
I try to write vex function to use in sop-contexts, which will query tangent (for example) from geometry - if current point is associated with some vertex on nurbs curve.
How may I query within vex-function which node is performing vex-code?

Thank you!
User Avatar
Member
183 posts
Joined: Nov. 2008
Offline
UP!

Need help on how to get access to geometry from custom vex function in cvex context. Similar to point() or prim() vex functions.

Thanks!
Aleksei Rusev
Sr. Graphics Tools Engineer @ Nvidia
User Avatar
Member
127 posts
Joined: Nov. 2008
Offline
auto file = static_cast<const char *>(argv); // Filename or Op path
GU_SopQuery qsop;
auto handle = qsop.getDetail(file, -1);
auto gdp = handle.readLock();


I also came across GU_VexGeoInputs in the GU_SopResolver header..however, I could not get that to work.

If anyone knows of a better way I would be very happy
Bhavesh Pandey.

https://bhaveshpandey.io [bhaveshpandey.io]
  • Quick Links