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
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
Alwyn
Creating treadplate in openscad
Forum rules
This section is for posting helpful Tips and Tricks only. Questions need to be posted within general questions section viewforum.php?f=14
This section is for posting helpful Tips and Tricks only. Questions need to be posted within general questions section viewforum.php?f=14
- AlwynTurner
- 2nd Lieutenant
- Posts: 2597
- Joined: Thu Oct 23, 2014 10:47 am
- Location: Chapel-en-le-Frith, Derbyshire
Creating treadplate in openscad
YOU'RE NEVER TOO OLD TO HAVE A HAPPY CHILDHOOD!
Saladin scratchbuild, Matilda scratchbuild, Churchill scratchbuild, Crusader scratchbuild, M10 Achiĺles scratchbuild, Universal Carrier scratchbuild
Saladin scratchbuild, Matilda scratchbuild, Churchill scratchbuild, Crusader scratchbuild, M10 Achiĺles scratchbuild, Universal Carrier scratchbuild
-
- Private
- Posts: 54
- Joined: Wed May 04, 2022 10:29 am
Re: Creating treadplate in openscad
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.
Need to spend more time to learn it better.
- jarndice
- Colonel
- Posts: 8029
- Joined: Mon Sep 03, 2012 11:27 am
- Location: the mountains of hertfordshire
Re: Creating treadplate in openscad
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.
It is easy to cut to size and has a different pattern on either side.
I think I am about to upset someone