sibarrick Posted July 25, 2005 Share Posted July 25, 2005 Hi, Is it easy to convert a prim group to a point group? I can't find any methods to do it, so maybe you just have to loop through all the prim entries and find the point numbers and build a new point group. But I'm guessing there is an easier pre-rolled way to do this out there somewhere..... any ideas? Quote Link to comment Share on other sites More sharing options...
edward Posted July 25, 2005 Share Posted July 25, 2005 Try using GEO_Closure. (eg. getPointClosure() ... it essentially does what you describe). Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted July 25, 2005 Share Posted July 25, 2005 Try using GEO_Closure. (eg. getPointClosure() ... it essentially does what you describe). 19857[/snapback] Since Ed helped me with this one a while back ago....here is a good snippet from an old long dead project. const GB_PointGroup *ptGroup = NULL; GEO_Closure closure(local_gdp); // Convert the primGroup to a pointGroup ptGroup = closure.getPointClosure(*riShaderGroups[i]); // Convert back to a primGroup. (Expands selection) ribOutputGroup = closure.getPrimitiveClosure(*ptGroup); Quote Link to comment Share on other sites More sharing options...
sibarrick Posted July 25, 2005 Author Share Posted July 25, 2005 Nice one ta. 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.