FruehBird Posted August 30, 2017 Share Posted August 30, 2017 I am working on a way to place packed primitives (sphere) onto a point cloud one at a time, detect if there is a collision and shrink the object until there is no collision. I have attached a file I am working on. Currently the scale is set to the iteration of the loop but does not seem to work correctly. For collision I am using the intersection node on feedback of the first for-loop and setting a detail attribute Collision to the just added sphere and from there setting a stopping value for the for-loop is attribute exists. The internal for-loop is then merged into the first and the cycle continues until all the points are filled. Am I going about the right way of setting this up? For-Loop_Intersection.hip Quote Link to comment Share on other sites More sharing options...
Atom Posted August 30, 2017 Share Posted August 30, 2017 If you are just trying to fill a shape with an object, you might want to check out this thread on packed bubble. Quote Link to comment Share on other sites More sharing options...
FruehBird Posted August 30, 2017 Author Share Posted August 30, 2017 Thanks for the link Atom. This is just a simple part of a much larger operation. Eventually I will be placing a prototype on to each point, one at a time and checking for intersections, if one exists I will be rotating/scaling the prototype until no intersections occur and then move on to the next point and do the same. Quote Link to comment Share on other sites More sharing options...
FruehBird Posted August 30, 2017 Author Share Posted August 30, 2017 Here is a version where I am able to iterate and scale a single copy. I just can't seem to merge the two loops together. For-Loop_Intersection_v04.hip Quote Link to comment Share on other sites More sharing options...
FruehBird Posted August 30, 2017 Author Share Posted August 30, 2017 I was able to get it working. However to do so I had to bypass the first iteration to initialize outputing the mesh that gets added through the copy sop. Curious as to why that happens. For-Loop_Intersection_v05.hip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.