quarel Posted March 22, 2011 Share Posted March 22, 2011 hi guys , have you any idea how to achieve sth. like this? it's an algorythm called square packing. I don't know how to NOT intersect squares by each other. Quote Link to comment Share on other sites More sharing options...
Macha Posted March 23, 2011 Share Posted March 23, 2011 Not great, but one idea. packme.hip 1 Quote Link to comment Share on other sites More sharing options...
edward Posted March 23, 2011 Share Posted March 23, 2011 Shouldn't this topic be called "fitting square pegs in a round hole"? Quote Link to comment Share on other sites More sharing options...
kumpa Posted March 23, 2011 Share Posted March 23, 2011 One way to get rid of intersections is to use rbd solver with resolve interpenetrations on. However it probably won't work with flat squares. Quote Link to comment Share on other sites More sharing options...
quarel Posted March 26, 2011 Author Share Posted March 26, 2011 great Macha, it's very nice. However I'm thinking to create a big circle full of cubes. so resolving of intersections for 3D objects is ok..the problem is that I want in my school project arrange a hundreds of boxes:) so the sim. is really slow and killing my computer Some time ago i tried to organize spheres trough creep sop but it deformed them. Also I was looking for solution in CIrcle packing (here is called poor man circling) maybe there is the way.. tomorrow I'll post the pics of theese two possible ways. because i'd love to solve theese boxes. Quote Link to comment Share on other sites More sharing options...
inoue Posted April 18, 2011 Share Posted April 18, 2011 I find this site. http://complexification.net/gallery/machines/boxFitting/ There is source code using javascript. Quote Link to comment Share on other sites More sharing options...
quarel Posted May 1, 2011 Author Share Posted May 1, 2011 hey, thank you! that's pretty interesting. BUT I was thinking about some kind procedural method to apply filling with squares to any kind of shape not just square. Quote Link to comment Share on other sites More sharing options...
ikarus Posted May 2, 2011 Share Posted May 2, 2011 i think either macha's solution or something based on the box fitting code could technically work with any shape, provided you had the geometry for collision (in machas case) or a function that drawtests based on the shape of the object (box fitting) 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.