Macha Posted May 9, 2014 Share Posted May 9, 2014 Does anybody have a short example of inlinecpp that iterates over an existing volume? Thanks. Quote Link to comment Share on other sites More sharing options...
Ratman Posted May 9, 2014 Share Posted May 9, 2014 Hey Marc, I don't have a current inlinecpp example for that. But the docs have a good section on iterating through volumes and their values. http://www.sidefx.com/docs/hdk13.0/_h_d_k__volumes.html This should give you an idea on the functions needed to do that. I'll look at seeing what could be done with the inlinecpp. -Rick Quote Link to comment Share on other sites More sharing options...
Macha Posted May 9, 2014 Author Share Posted May 9, 2014 Thanks Rick, I've been looking at those before but can't get it to work. I can't even find the right includes for the UT_VoxelArrayIterator, and I have tried a lot of them. It makes me think it is an inlinecpp specific problem. That's why I am asking for a short example. Quote Link to comment Share on other sites More sharing options...
Ratman Posted May 9, 2014 Share Posted May 9, 2014 I believe it should be GU/GU_Detail.h and GU/GU_PrimVolume.h on the HDK side of things. http://www.sidefx.com/docs/hdk13.0/_g_e_o_2_g_e_o__voxel_translator_8_c-example.html http://www.sidefx.com/docs/hdk13.0/standalone_2gengeovolume_8_c-example.html Definitely gonna have to look into it on the inlinecpp side of things. Quote Link to comment Share on other sites More sharing options...
Macha Posted May 9, 2014 Author Share Posted May 9, 2014 No, none of these includes are sufficient. From the examples it looks like they should, but it doesn't work, at least with the inlinecpp stuff. Quote Link to comment Share on other sites More sharing options...
Macha Posted May 9, 2014 Author Share Posted May 9, 2014 (edited) Looks to me as if all handles related to voxel arrays in inlinecpp are spewing out errors related to boost? Edited May 9, 2014 by Macha Quote Link to comment Share on other sites More sharing options...
narthe Posted May 15, 2014 Share Posted May 15, 2014 (edited) If i may ask a question kind of related to this topic : can anyone tell me how to properly use a UT_VoxelArrayIteratorV4 to iterate over a SIM_VectorField. For now what i'm doing is : UT_VoxelArrayIteratorF myvectorFieldIterator[3]; for (int i = 0; i < 3; i++) { myvectorFieldIterator[i].setArray(myvectorField->getField(i)->fieldNC()); myvectorFieldIterator[i].rewind(); } and what i would like to do is : UT_VoxelArrayIteratorV4 myvectorFieldIterator; myvectorFieldIterator.setArray(myvectorField->getField()->fieldNC()); But it seems i can't set a UT_VoxelArrayV4 to the UT_VoxelArrayIteratorV4 with the setArray() method =/ Edited May 15, 2014 by narthe 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.