Creating treadplate in openscad

This section contains tips and tricks on building and running model vehicles. If you know any then post them here and if you need to find any, try your first search here.
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
Post Reply
User avatar
AlwynTurner
2nd Lieutenant
Posts: 2597
Joined: Thu Oct 23, 2014 10:47 am
Location: Chapel-en-le-Frith, Derbyshire

Creating treadplate in openscad

Post 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:
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
whitecitadel
Private
Posts: 54
Joined: Wed May 04, 2022 10:29 am

Re: Creating treadplate in openscad

Post 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.
User avatar
jarndice
Colonel
Posts: 8003
Joined: Mon Sep 03, 2012 11:27 am
Location: the mountains of hertfordshire

Re: Creating treadplate in openscad

Post 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:
I think I am about to upset someone :haha:
Post Reply

Return to “Tips and Tricks”