Nasyrov Posted September 3, 2008 Share Posted September 3, 2008 Hi there. There is a primitive (GEO_Primitive) loaded into VRAY shader. I want to take values of attributes in vertices. I'm trying to do this by evaluateInteriorPoint (GEO_Vertex &result, GEO_AttributeHandleList &hlist, fpreal u, fpreal v) const But nothing good happens. Mantra crashes. Thanks Quote Link to comment Share on other sites More sharing options...
Nasyrov Posted September 3, 2008 Author Share Posted September 3, 2008 so as this GEO_Vertex vert; vert = skinPrim->getVertex(0); GEO_Point *ppt; ppt = vert.getPt(); const UT_Vector3 *cCd = ppt->castAttribData<UT_Vector3>(densID); UT_Vector3 Cd= *cCd; printf("\n%f\n", Cd.x()); Quote Link to comment Share on other sites More sharing options...
Nasyrov Posted September 3, 2008 Author Share Posted September 3, 2008 ok. It works Quote Link to comment Share on other sites More sharing options...
hoknamahn Posted February 19, 2009 Share Posted February 19, 2009 Could you explain guys what GEO_AttributeHandleList is? Is it some sort of filter "which attribute to query, how to filter and so on"? Shall I and how to initialize it prior to call evaluateInteriorPoint()? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.