Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

spectronaut

Can I get a group from PolyCap?

Is there a way to define a group of primitives based off the faces created by PolyCap?

Share this post


Link to post
Share on other sites

Thank you, again. So helpful. 
I am slowly getting the Houdini mindset thanks to excellent people like yourself. Very much appreciated. 

Share this post


Link to post
Share on other sites

a way to group it with less nodes and without splitting it after the polycap is by grouping by range:

so tube1 -> polycap_AddsMoreFaces -> Group_by_range:

in the group by range, make the range: nprims("../tube") to $N

it basically uses the heuristic that the primitive numbers of the polyCap always go after the input geometry.

2 people like this

Share this post


Link to post
Share on other sites

Neat trick acey!

I added a file with 3 samples using attributes/wrangles:
1. Using acey's trick above.
2. Using an attribute to tag primitives faces before being capped. Then using group expression to isolate by the tag id number.
3. Using attribute wrangle, almost similar to acey's method. It reads the primitive count of the tube, then grouping only primitives that has newer primitive numbers.

 

 

polycap_groups.hiplc

1 person likes this

Share this post


Link to post
Share on other sites

You can also type

$NVTX > 4

as an expression in your group node, if your caps have more than four corners.

Edited by konstantin magnus
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now