Jump to content

Converting Prim To Point Groups


Recommended Posts

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..... :huh: any ideas?

Link to comment
Share on other sites

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);

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...