guache Posted December 28, 2019 Share Posted December 28, 2019 (edited) I managed to avoid this problem, but I'm still curious about suggestions how to do this in Houdini. On a 2D plane, I needed to tightly "pack" a bunch of circles of differing sizes ("pack" in the sense of bringing as close as possible, without overlaps). Each circle has its own "id" and the "id" of its "best friend", that is, the most preferred neighbor (see pic below). The goal is to pack the circles in as small a space as possible, while minimizing the sum of distances between all "friends". The Point Relax SOP doesn't really address this problem: it spreads the circles around, but doesn't optimize distances between "friends". One solution could be an RBD sim: spread the discs around, lock them to the plane, give each one a "force" towards its friend, and run several sims with different starting positions, and pick the best result. I managed to avoid this by having equal circles in a hexagon formation (bottom pic), and simply assigning "friend ids" to adjacent circle pairs. But if anyone sees some other approach to the original problem, I'd love to hear it. Edited December 28, 2019 by guache Quote Link to comment Share on other sites More sharing options...
Librarian Posted December 28, 2019 Share Posted December 28, 2019 (edited) Combine and Entagma mentioned this on some WEB SEMINAR. https://particula.org/vex/ https://github.com/deshudiosh/PG.hips#c-isolines Edited December 28, 2019 by Librarian 1 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.