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.

Postby AlwynTurner » Sun Jul 10, 2022 11:28 am

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 () {
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]);
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:
User avatar
2nd Lieutenant
Posts: 2511
Joined: Thu Oct 23, 2014 10:47 am

Postby whitecitadel » Mon Jul 11, 2022 7:48 am

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.

Posts: 48
Joined: Wed May 04, 2022 10:29 am

Postby jarndice » Mon Jul 11, 2022 8:55 am

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

Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 4 guests