mrice Posted August 13, 2010 Share Posted August 13, 2010 Is there a built-in way to get an array of GEO_Point* or GEO_Primitive* which belong to a specific group? Thanks! Quote Link to comment Share on other sites More sharing options...
edward Posted August 13, 2010 Share Posted August 13, 2010 Most group types use a bit flag per point/primitive to say whether it belongs to a particular group. So the general way to do this is to loop through all points/prims (eg. FOR_ALL_GROUP_PRIMITIVES) Quote Link to comment Share on other sites More sharing options...
mrice Posted August 13, 2010 Author Share Posted August 13, 2010 Thanks Edward. That's what I'm trying to avoid, but now that I understand a little better how groups work it makes sense. So all the GEO_Detail functions that can operate on a group have to loop through the entire gdp as well? Storing a GEO_PointRefArray for each group might be the solution I'm looking for. Quote Link to comment Share on other sites More sharing options...
edward Posted August 14, 2010 Share Posted August 14, 2010 So all the GEO_Detail functions that can operate on a group have to loop through the entire gdp as well? Yes. It's basically a trade-off between memory and speed of iteration. Note that if you use the macro, then the HDK is free to optimize that in the future. 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.