@@ -32,10 +32,11 @@ Both this modules do the same thing as minkowskiRound() but focus on either insi
32
32
// }
33
33
// }
34
34
35
- // minkowskiRound(0.5,2,1,[50,50,50])union(){//--example in the thiniverse thumbnail/main image
35
+ // $fn=20;
36
+ // minkowskiRound(0.7,1.5,1,[50,50,50])union(){//--example in the thiniverse thumbnail/main image
36
37
// cube([6,6,22]);
37
- // rotate([30,45,10])cylinder(h=22,d=10);
38
- // }//--I rendered this out with a $fn=25 and it took more than 12 hours on my computer
38
+ // rotate([30,45,10])cylinder(h=22,d=10);
39
+ // }//--I rendered this out with a $fn=25 and it took more than 12 hours on my computer
39
40
40
41
41
42
module round2d(OR=3,IR=1){
@@ -48,16 +49,16 @@ module round2d(OR=3,IR=1){
48
49
}
49
50
}
50
51
51
- module minkowskiRound(OR=1,IR=1,enable=1,cubeSize =[500,500,500]){
52
+ module minkowskiRound(OR=1,IR=1,enable=1,boundingEnvelope =[500,500,500]){
52
53
if (enable== 0 ){// do nothing if not enabled
53
54
children();
54
55
} else {
55
56
minkowski (){// expand the now positive shape back out
56
57
difference (){// make the negative shape positive again
57
- cube (cubeSize - [0.1 ,0.1 ,0.1 ],center= true );
58
+ cube (boundingEnvelope - [0.1 ,0.1 ,0.1 ],center= true );
58
59
minkowski (){// expand the negative shape inwards
59
60
difference (){// create a negative of the children
60
- cube (cubeSize ,center= true );
61
+ cube (boundingEnvelope ,center= true );
61
62
minkowski (){// expand the children
62
63
children();
63
64
sphere (IR);
@@ -71,16 +72,16 @@ module minkowskiRound(OR=1,IR=1,enable=1,cubeSize=[500,500,500]){
71
72
}
72
73
}
73
74
74
- module minkowskiOutsideRound(r=1,enable=1,cubeSize =[500,500,500]){
75
+ module minkowskiOutsideRound(r=1,enable=1,boundingEnvelope =[500,500,500]){
75
76
if (enable== 0 ){// do nothing if not enabled
76
77
children();
77
78
} else {
78
79
minkowski (){// expand the now positive shape
79
80
difference (){// make the negative positive
80
- cube (cubeSize - [0.1 ,0.1 ,0.1 ],center= true );
81
+ cube (boundingEnvelope - [0.1 ,0.1 ,0.1 ],center= true );
81
82
minkowski (){// expand the negative inwards
82
83
difference (){// create a negative of the children
83
- cube (cubeSize ,center= true );
84
+ cube (boundingEnvelope ,center= true );
84
85
children();
85
86
}
86
87
sphere (r);
@@ -91,15 +92,15 @@ module minkowskiOutsideRound(r=1,enable=1,cubeSize=[500,500,500]){
91
92
}
92
93
}
93
94
94
- module minkowskiInsideRound(r=1,enable=1,cubeSize =[500,500,500]){
95
+ module minkowskiInsideRound(r=1,enable=1,boundingEnvelope =[500,500,500]){
95
96
if (enable== 0 ){// do nothing if not enabled
96
97
children();
97
98
} else {
98
99
difference (){// make the negative positive again
99
- cube (cubeSize - [0.1 ,0.1 ,0.1 ],center= true );
100
+ cube (boundingEnvelope - [0.1 ,0.1 ,0.1 ],center= true );
100
101
minkowski (){// expand the negative shape inwards
101
102
difference (){// make the expanded children a negative shape
102
- cube (cubeSize ,center= true );
103
+ cube (boundingEnvelope ,center= true );
103
104
minkowski (){// expand the children
104
105
children();
105
106
sphere (r);
0 commit comments