Jump to content
Sign in to follow this  

cutting iteratively a geometry

Recommended Posts



i'm try to do Something not so hard (i think...) but i failed.

just a simple grid cutted iteratively.

like here : https://www.sidefx.com/tutorials/basics-foreach-iii/

( the second part ...but it's an old tutorial and the nodes have changed)

i explain: i have a grid (1 primitive) and i want to cut in several primitives iteratively, by a clip node , and a foreach loop or a copy stamp (i try the both solution).

the idea is to cut it in N prim proportionally of the size of the grid, (and with a random variation).

and my problem is : i can't  apply the clip on one of the prim resulting of my previous clip.

for example, if i try to do 4 clipping, the result is four grid( my initial prim) clipped , so 8 prim...

i'm not sure to be very clear so i attach the hip


i hope that someone know what is the problem and what is the solution ...


thanks a lot



edit: it's ok : the answer was " don't use a for-each node , but a for-loop node"...

Edited by chabis

Share this post

Link to post
Share on other sites

Hey, check the attached scene. PRB_IterativeClip.hiplc

Notice that the iteration count is control by the number of points of what is connected to the second input of the for loop "block end".

The rest is creating a matrix on the scattered points so the grid being cut is placed into a new pose, cut and put back into the original pose.

Hope it helps




Edited by probiner

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
Sign in to follow this