This OpenSCAD script will generate a grid pattern of small cuboids attached to a large flat cuboid.
The heights of the smaller cuboids will alternate sequentially.
The user can specify the number of rows & columns as well as the length & breadth of the smaller cuboids and the separation between adjacent cuboids.
The Number of different heights and the difference in height between smaller cuboids can be specified too.
The user can also choose whether or not to add Keyed connectors so that they can print multiple items that can then be easily connected together to for an arbitrarily large grid
The overall effect will be like the tread pattern of a mountain bike tyre or a 3D checker board.
Warning: DO NOT PRINT THIS WITHOUT SUPPORT MATERIAL ENABLED!
At the moment it uses far too much support material, and I am unsure if this will work well without support. Wait until it gets to version 1.0 if you are concerned with this.
Version_number < 1.0 generally not ready to be used by others
Version_number ==1.0 ready to be used provided you know what you're doing
Version_number > 1.0 safe for general use
add ability to split up a large grid into multiple pieces to fit a users specific 3D printer bed
add ability to separate print into click together smaller cuboid inserts and large cuboid grid
clean up code!
add support for symmetric keyed joint at edges courtesy of Relet's derivative http://www.thingiverse.com/thing:6214 of WilliamAAdams http://www.thingiverse.com/thing:5867
fixed small error with if/else if/else statement for calculating if ibject would fit within print envelope
add ability to have user definable arbitrary number of small cuboid heights
Add ability to check if item is small enough to fit into user's print envelope
Warn user when item is too big and prevent from generating a 3D object
Warn user when item is near max envelope but still generate 3D object
Hollow out shape to reduce print time and cost
Added ability to generate small cuboids with 3 different heights
Added ability to generate pattern with 2 different heights
First version with ability to generate basic grid with small cuboids all same height