HDK-getPos3() problem

   1792   1   1
User Avatar
Member
15 posts
Joined: Feb. 2011
Offline
lockInputs(context);
duplicateSource(0,context);
GU_Detail *input_geo_1 = (GU_Detail *)inputGeo(1);

std::cout<<input_geo_1->getGEOPoint(0)->getPos3()<<std::endl;


this getPos3() function always get wrong position.
please help me
thanks
:x
User Avatar
Member
678 posts
Joined: July 2005
Offline
1. Don't use lockInputs()/unlockInputs(). In H13/H14 we got OP_AutoLockInputs. Use it instead.
2. GEO is deprecated in H13/H14. Check documentation and HDK examples to see how to port your code to current standards.
http://www.sidefx.com/docs/hdk14.0/_h_d_k__g_a__porting.html [sidefx.com]

Good luck!
  • Quick Links