Jump to content

Question for VOPSOP algorithm


akirasun

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

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