Jump to content

For-loop for in place modification and testing against the remaining primitives


AntoineSfx

Recommended Posts

How can I do this:

Say I have n  non overlapping primitives, and I want to try to scale up the ones that can, i.e without intersecting other ones.

The idea is:

For each primitive

if the larger version doesnt intersect the other ones, then scale it ...

 

The trick is " the other ones" is both the already processed ones, and the ones to be processed, excluding current one.

Problem I'm trying to solve: I have a set of primitives, and I want to expand them a little so they become closer together.

I can't find the right combination of merge / feedback / fetch feedback /  using a for-loop.

Edited by AntoineSfx
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...