make it work with a large radius
This commit is contained in:
parent
ead10a482a
commit
f542e0298d
1 changed files with 15 additions and 16 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
// asdfadsf
|
// asdfadsf
|
||||||
|
|
||||||
radius = product_of_the_triangle_side_lengths / area_of_the_triangle_multiplied_by_4;
|
//radius = product_of_the_triangle_side_lengths / area_of_the_triangle_multiplied_by_4;
|
||||||
|
|
||||||
FN=80*1;
|
FN=80*1;
|
||||||
|
|
||||||
width_shortest = 40;
|
width_shortest = 46.5;
|
||||||
width_longest = 60;
|
width_longest = 55.0;
|
||||||
height = 40;
|
height = 40;
|
||||||
wall_thickness = 3;
|
wall_thickness = 3;
|
||||||
|
|
||||||
|
|
@ -26,24 +26,23 @@ radius_side = product_triangle_sides / (4 * triangle_area);
|
||||||
echo(str("Radius: ", radius_side));
|
echo(str("Radius: ", radius_side));
|
||||||
|
|
||||||
module body(radius_sides, body_height, body_width, inner){
|
module body(radius_sides, body_height, body_width, inner){
|
||||||
|
intersection(){
|
||||||
intersection(){
|
intersection(){
|
||||||
intersection(){
|
intersection(){
|
||||||
translate([0,0,-body_height/2]){
|
translate([0,0,-body_height/2]){
|
||||||
cube([body_width,100,body_height]);
|
cube([body_width,100,body_height]);
|
||||||
}
|
}
|
||||||
union(){
|
|
||||||
translate([radius_sides,0,0]){
|
translate([radius_sides,0,0]){
|
||||||
rotate([-90,0,0]){
|
rotate([-90,0,0]){
|
||||||
cylinder(h=100, r=radius_sides, $fn=FN);
|
cylinder(h=100, r=radius_sides, $fn=FN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
translate([body_width-radius_sides,0,0]){
|
translate([body_width-radius_sides,0,0]){
|
||||||
rotate([-90,0,0]){
|
rotate([-90,0,0]){
|
||||||
cylinder(h=100, r=radius_sides, $fn=FN);
|
cylinder(h=100, r=radius_sides, $fn=FN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
union(){
|
union(){
|
||||||
translate([0,radius_sides,-body_height/2]){
|
translate([0,radius_sides,-body_height/2]){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue