Code covered by the BSD License  

Highlights from
honeycomb evolution

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 6.67 KB File ID: #29990
image thumbnail

honeycomb evolution

by Maxim Vedenyov

 

10 Jan 2011 (Updated 10 Jan 2011)

get hexadron tessellation using random search

| Watch this File

File Information
Description

http://simulations.narod.ru/

This is a honeycomb evolution simulation. In bees evolution using trial and error method found optimal tessellation of 2d space. They minimized wax using to build walls, so total length of walls in all honeycomb is to minimize. Also different cells must have about same area.

In the code walls was parameterized using voronoi diagram. The geometry is looped: down edge of picture is up edge of the picture, left edge of picture is up right of the picture. It is like periodic boundary condition. The rectangle displayed actually repeated 3x3=9 times. Then voronoi diagram applied. Only in middle rectangle voronoi diagram part used in total length Ls calculation. To prevent moving points to one stack there not Ls minimized but Ls_ex = Ls + const/min_dist, where min_dist minimal distance between points.

Random search used.. In iteration of random search it search minimum Ls_ex each time. In each iteration the code try random position of points near current positions. Zone of random search is contracted exponentially with iterations.

Run honeycombs.m to start simulation.

Some times hexadrons not so uniform as in gif-animated here.

Animation:
http://www.youtube.com/watch?v=EIrA0fMqmq8

honeycombs_avi.m to make avi file
honeycombs_gif.m to make gif file

auxilary functions:
segment_rectange.m finds length of cross of segment and rectangle
cross_perimeter.m find points of cross of rectengle perimeter and segment

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
29 Nov 2011 K M

I was wondering where I can find the voronoi tessellation code? I am trying to regularize my 3D points before alignment.

11 Dec 2011 Maxim Vedenyov

In matlab it is voronoi and voronin functions

Please login to add a comment or rating.
Updates
10 Jan 2011

Some errors fixed

Tag Activity for this File
Tag Applied By Date/Time
evolution Maxim Vedenyov 10 Jan 2011 08:51:14
honeycomb Maxim Vedenyov 10 Jan 2011 08:51:14
bee Maxim Vedenyov 10 Jan 2011 08:51:14
random search Maxim Vedenyov 10 Jan 2011 08:51:14

Contact us at files@mathworks.com