abahena Posted April 4, 2015 Share Posted April 4, 2015 (edited) Hi, I want to iterate thru all group points. And the iterate all the primitives using each point. And the back again thru all points in that primitive. here is the code GEO_Point *pt; GA_PointGroup *grp; GA_FOR_ALL_GROUP_POINTS(gdp, grp, pt) { cout<<endl; } I get expected unqualified-id or Operator '=' cannot be resolved for type The code at header fie its: /// @def GA_FOR_ALL_GROUP_POINTS(gdp, grp, point) /// Iterate over all points in group. @see GA_RTIElementGroup #define GA_FOR_ALL_GROUP_POINTS(gdp, grp, point) \ for (GA_GBPointIterator it(*(gdp), grp); \ (point = GA_Detail::GB_MACRO_CAST(gdp, it.getPoint())); ++it) The error its at: point = GA_Detail::GB_MACRO_CAST(gdp, it.getPoint())); I can't figure out the error; cheers! -A Edited April 4, 2015 by abahena Quote Link to comment Share on other sites More sharing options...
ayidi Posted April 4, 2015 Share Posted April 4, 2015 (edited) GEO_Point is deprecated, use offsets. GB is also depracated. GA_Offset ptoff; GA_FOR_ALL_GROUP_PTOFF(gdp, gapointgroup, ptoff) { } Edited April 4, 2015 by ayidi Quote Link to comment Share on other sites More sharing options...
abahena Posted April 4, 2015 Author Share Posted April 4, 2015 thanks! Quote Link to comment Share on other sites More sharing options...
abahena Posted April 4, 2015 Author Share Posted April 4, 2015 Another question all GEO_ are deprecated? Quote Link to comment Share on other sites More sharing options...
abahena Posted April 4, 2015 Author Share Posted April 4, 2015 Still not working Im using OS X, it compiles. Bad I get a memory access problem at 0 libHoudiniGEO.dylib 0x000000011846bd4d GA_RTIElementGroup::GA_RTIElementGroup(GA_IndexMap const&, GA_ElementGroup const*, bool) + 45 1 libHoudiniGEO.dylib 0x000000011847580e GA_Range::GA_Range(GA_IndexMap const&, GA_ElementGroup const*, bool) + 62 2 SOP_Barycentric.dylib 0x0000000140074ebe HDK_Sample::SOP_Barycentric::cookMySop(OP_Context&) + 990 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.