Toy Brick Model

A Model for the Popular Lego Brand Building Brick. This Model includes Customizer text for the lettering on the surface of the bricks.

You can simply copy this text into you OpenSCAD editor and Press F5

$fn=25;

pegtext = "CUBE";
pegtext1 = ["C","U","B","E"];
pegtext2 = [["S","C","A","D"],["O","P","E","N"]];

difference(){
    cube([31.80,15.80,9.60]);
    translate([1.45,1.45])
    cube([28.90,12.90,8.60]);
}

translate([3.90,3.90])
    for ( j = [0:1] ) {
        for ( i = [0:3] ) {
            translate([i*8,j*8,9.60]){
                cylinder(h=1.80,r=2.42); 
                translate([0,0,1.8])
                linear_extrude(.4)
                text( pegtext2[j][i], .8, halign="center",valign="center");
            }
        }
    }

translate([7.90,7.90])   
for ( k = [0:2] ) {    
    translate([k*8,0])
    difference(){
        cylinder(h=8.60,r=3.25);
        cylinder(h=8.60,r=2.40);
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: