Jump to content

Group by primvertexcount


konstantin magnus

Recommended Posts

I think the problem with that approach is you are only going to get one primitive as your result, which is what $NVTX > 4 produces. The group field does not iterate through the @primnums. If you place code in a wrangle running over primitives you can collect up all primitives that match the IF statement. Then just reference that group name in the polyextrude.

Untitled-1.jpg

Edited by Atom
Link to comment
Share on other sites

 

On 6/15/2017 at 11:05 PM, Atom said:

(image)

you can also just type:

@group_toExtrude = (primvertexcount(0, @primnum) < 4); //this is safer because the group will always be created (even if it is empty) that way you do not have issues using the groupPromote operation for instance

//or even simpler (run over prims):

@group_toExtrude = (@numvtx < 4);

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