Add PVC drain end
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||
include <BOSL2/std.scad>
|
||||
|
||||
pipe_diameter = 48.3;
|
||||
|
||||
wall_thickness = 3;
|
||||
|
||||
straight_length = 20;
|
||||
hull_length = 50;
|
||||
|
||||
end_height = 20;
|
||||
end_width = 70;
|
||||
end_rounding = end_height/2;
|
||||
|
||||
additional_offset = 15;
|
||||
|
||||
$fn = 150;
|
||||
|
||||
difference() {
|
||||
/* Outside */
|
||||
group() {
|
||||
hull() {
|
||||
cylinder(d=pipe_diameter, h=0.1, anchor=BOTTOM);
|
||||
up(0.1+hull_length) left(pipe_diameter/2+additional_offset)
|
||||
cuboid([end_height,end_width,0.1], rounding=end_rounding, edges="Z", anchor=TOP+LEFT);
|
||||
}
|
||||
}
|
||||
|
||||
/* Inside */
|
||||
group() {
|
||||
hull() {
|
||||
cylinder(d=pipe_diameter-2*wall_thickness, h=0.1, anchor=BOTTOM);
|
||||
up(0.1+hull_length) left(pipe_diameter/2-wall_thickness+additional_offset)
|
||||
cuboid([end_height-2*wall_thickness,end_width-2*wall_thickness,0.1], rounding=end_rounding-wall_thickness, edges="Z", anchor=TOP+LEFT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tube(h=straight_length,od=pipe_diameter,wall=wall_thickness,anchor=TOP);
|
||||
Reference in New Issue
Block a user