-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrickStructures.scad
51 lines (30 loc) · 1011 Bytes
/
BrickStructures.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
Basic Lego brick builder module for OpenScad by Jorg Janssen 2013 (CC BY-NC 3.0)
To use this in your own projects add:
use <path_to_this_file/lego_brick_builder.scad>
## TBD: fix usage
brick (length, width, height [,smooth]);
Length and width are in standard lego brick dimensions.
Height is in flat brick heights, so for a normal lego brick height = 3.
Add optional smooth = true for a brick without studs.
Use height = 0 to just put studs/knobs on top of other things.
*/
$fn = 100;
include <_conf.scad>;
include <RectBrickBuilder.scad>;
include <RoundBrickBuilder.scad>;
// include <ReducerBrickBuilder.scad>;
// this is it:
color("gray")
polygon([[0,0],[0,5],[5,5],[5,10],[10,10],[10,15],[15,15],[15,20],[10,20],[10,25],[5,25],[5,30],[0,30]]);
//longhouseBrick(base=5,length=10);
module longhouseBrick (base=5,length=10) {
union() {
for(x= [0:base-1]) {
translate([0,x*BRICK_WIDTH,0]) {
rectBrick(length,1,3,1);
}
}
}
}
//