Jump to content
Sign in to follow this  
akirasun

Question for VOPSOP algorithm

Recommended Posts

Hi there ,

I have spent several days on a experimental project(for practicing).

I attempted to do is , try to find a way that can fill & generate objects in a reference object(for instance inside a cube) without any penetration or any intersection with each other.

post-4024-129249309072_thumb.png

I used a “iso offset node” and “scatter node” to achieve generation of random points in a cube , then sent all points to a ”VOPSOP node”.

I concerned a algorithm for VOPSOP , see below

for (i=0;i<pointCount;i++)

{

if i.color !=<<1,1,1>>

{

for (j=0;j<pointCount;j++)

{

if distance(i,j) < radius && (i != J)

{

j.color = <<1,1,1>>

}

}

}

}

And here is my SOP Network and VOPSOP Network.

post-4024-129249309892_thumb.png

Maybe I did completely wrong ,hope someone can point it out.

Thanks in advence

Volume_03.hipnc

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  

×