Page 1 of 1

Creating treadplate in openscad

Posted: Sun Jul 10, 2022 11:28 am
by AlwynTurner
I've been pondering this for some time and finally got my head round it. Here is the openscad code to create treadplate in 1/16

Image

module plate () {
$fn=100;
difference (){
union (){
for (y=[0:9:80]) translate ([0,y,0])union (){
for (x=[0:10:70]) translate ([x,0,0]) rotate ([0,0,0]) tread();
for (x=[9:10:70]) translate ([x,6,0]) rotate ([0,0,180]) tread();
}
translate ([-3,-3,0]) rotate ([0,0,0]) cube ([ 80,84,1]);
}
}
}
plate();
module tread(){
translate ([-1.5,-2,0]) rotate ([0,0,0]) cube ([ 7,11,1]);
translate ([0,0,0]) rotate ([45,0,0]) cube ([ 4,1,1]);
translate ([0,1.5,0]) rotate ([45,0,0]) cube ([ 4,1,1]);
translate ([1.25,3,0]) rotate ([45,0,90]) cube ([ 4,1,1]);
translate ([2.5,3,0]) rotate ([45,0,90]) cube ([ 4,1,1]);

}
tread ();

If you want a different size or shape just use the intersection verb with a suitable shape that you want. If you want larger or smaller scale just alter the dimensions.

Have fun :crazy: :haha: :D
Alwyn :thumbup: :wave:

Re: Creating treadplate in openscad

Posted: Mon Jul 11, 2022 7:48 am
by whitecitadel
That’s cool, after your tip on your build thread about gears in scad I realised I had used it before for generating spheres for speakers. It’s quite powerful for the scripting.
Need to spend more time to learn it better.

Re: Creating treadplate in openscad

Posted: Mon Jul 11, 2022 8:55 am
by jarndice
I have to confess that I buy 0.5mm Treadplate poly sheet online,
It is easy to cut to size and has a different pattern on either side. :thumbup: