Jump to content

Macro GA_FOR_ALL_GROUP_POINTS not compiling in mac


Recommended Posts

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 by abahena
Link to comment
Share on other sites

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 
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...