Jump to content
Follyx

intersection analysis

Recommended Posts

I found this file wich is in the atachement.

 

How does this work? I mean where are the function for deleting the spheres wich intersect each other? Is it the job from the intersection anlysis? But if so, where is the connected Output from the intersection analysis? I really dont understand the logic behind this scene.

Who could give me a hint / explanation please?

untitled.hip

Share this post


Link to post
Share on other sites

Hey @Follyx, this is essentially a dart throwing algorithm.
The switch node decides whether the current sphere or the empty null is merged based on the number of points of the intersection analysis node.

if(npoints('../intersectionanalysis2')>0,1,0)

If its just about avoiding spheres to collide (and not arbitrary meshes) you can also watch these tutorials:

Fill with Non-Overlapping Packed Instances : https://www.youtube.com/watch?v=XJ7QJOZcLJk
SOP Solver Tutorial - Dart throwing algorithm: https://www.youtube.com/watch?v=Y1UC3T9l15U

  • Like 3

Share this post


Link to post
Share on other sites

Phantastic, thank you. I didnt recognized the null way from the switch. Was deep in the loop involved that I missed everything outside... lol

And thank you for the examples.

Edited by Follyx

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

×