Following up from a thread on the sidefx-houdini-list, I'm attaching a script that stacks circles inside a shape. (The hscript version posted to the list had line wrap problems.)
This approach uses the dual of a delaunay triangulation of a shape, some least-squares adaptation, spline fitting, etc to pack circular shapes inside an object in a quasi-random manner. The result is fairly organic cellular composition.
packed circles
14172 8 4- tstex
- Member
- 454 posts
- Joined: July 2005
- Offline
- tstex
- Member
- 454 posts
- Joined: July 2005
- Offline
Here's an extension - or variant - of the above network. (You need to have run the above script before you can run this one.)
It's along the same lines of the above script - using the dual of the delaunay triangulation - which is just a voronoi breakup essentially:
http://www.comp.lancs.ac.uk/~kristof/research/notes/voronoi/ [comp.lancs.ac.uk]
It would be great if SESI could wrap this up into a SOP that had the additional ability to preserve the boundary of the original shape, and beyond that, handle 3d shapes…
Enjoy!
Cheers
It's along the same lines of the above script - using the dual of the delaunay triangulation - which is just a voronoi breakup essentially:
http://www.comp.lancs.ac.uk/~kristof/research/notes/voronoi/ [comp.lancs.ac.uk]
It would be great if SESI could wrap this up into a SOP that had the additional ability to preserve the boundary of the original shape, and beyond that, handle 3d shapes…
Enjoy!
Cheers
- syzmatrix
- Member
- 111 posts
- Joined: Dec. 2008
- Offline
- tstex
- Member
- 454 posts
- Joined: July 2005
- Offline
- tstex
- Member
- 454 posts
- Joined: July 2005
- Offline
- arzo
- Member
- 99 posts
- Joined: Sept. 2006
- Offline
- tamte
- Member
- 8449 posts
- Joined: July 2007
- Offline
- fsimerey
- Member
- 279 posts
- Joined: Dec. 2009
- Offline
It's far away the approach of post in houdini-list and this link
http://paulbourke.net/texture_colour/randomtile/ [paulbourke.net]
Your approach never give you a big difference between the bigger and the smaller shape.
A VEX or python could do this.
http://paulbourke.net/texture_colour/randomtile/ [paulbourke.net]
Your approach never give you a big difference between the bigger and the smaller shape.
A VEX or python could do this.
- sly
- Member
- 28 posts
- Joined: Nov. 2011
- Offline
fsimerey
It's far away the approach of post in houdini-list and this link
http://paulbourke.net/texture_colour/randomtile/ [paulbourke.net]
Your approach never give you a big difference between the bigger and the smaller shape.
A VEX or python could do this.
thanks for the link ! very interesting
-
- Quick Links