Reaction-Diffusion Cube

Reaction-Diffusion Cube

pinshape

My Practice of Reaction-Diffusion Model. The reaction-diffusion system is a model that generates pattern on the surface of some animals such as zebras or fish. A nice explanation can be found here: http://www.karlsims.com/rd.html. I calculated a cubic world using C program, surrounding it with coffee cup design made by OpenSCAD program. Printer Settings: Printer: Da Vinci 2.0 DuoRafts: Yes Supports: Yes Notes: To change the reaction-diffusion pattern (various parameters of reaction-diffusion, random seed, resolution, # of iteration), edit "rdcube.c", compile and run, then redirect output to "rddube-sub.scad". The algorithm used is Gray-Scott model on a cube world (each face made with matrix that continues at the edge with the next face). Currently, the C program is too complex, and I do not upload it. To change the design of the cube, edit "rdcube.scad". I made it to consist of a manifold object, but OpenSCAD itself or other CAD software says it's not a manifold... (I don't know the reason.) I fixed it with Meshmixer, then Microsoft Model Repair service. The "rdcube-sub.scad" is a part of OpenSCAD program that initializes array v[] with the data. I do not have texture mapping (zmap) skill/software to place matrix onto surface, so did this way. Please comment better ways. How I Designed This I used different three C programs (not shown here) to calculate reaction-diffusion system, which made output as OpenSCAD array v[] initializer sub program, then render with OpenSCAD. Calculation mesh is 40 x 40 for each face, object size is scaled to 40 x 40 x 40 mm. The world has no end like torus, but it's interesting that edges seem to have singularity, and the pattern aligns parallel/vertical to edges. The rdcube2 was made with smaller "diffusion rate" F, then calculate difference with smaller cube using Blender. The difference (outer pattern) is for black filament, inner cube for white filament, to print out with dual color 3D printer. On the rdcube3, the kill ratio k varies between one corner to opposite corner. Then calculate difference (outer, white) and union (inner, black) with smaller cube, print out with dual color.

Download Model from pinshape

With this file you will be able to print Reaction-Diffusion Cube with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Reaction-Diffusion Cube.