-
Notifications
You must be signed in to change notification settings - Fork 4
/
mask.scad
executable file
·72 lines (64 loc) · 2.2 KB
/
mask.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Model: pneumatic CPAP with no moving parts, mask included.
*
* Copyright (C) 2020 Helio Machado <[email protected]>
* Aleks Clark <[email protected]>
*
* This code describes open hardware and is licensed under the CERN-OHL-P V2.
*
* You may distribute, modify and materialize these designs as long as you do
* it under the terms of the CERN-OHL-P V2 license (https:/cern.ch/cern-ohl).
* This documentation is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY,
* INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A GIVEN
* PURPOSE.
*
* Please refer to the accompanying CERN-OHL-P V2 license text for a detailed
* description of the applicable conditions.
*/
use <library/primitives/tube.scad>;
use <library/connectors/conical/ISO5356_1.scad>;
use <library/valves/georges.scad>;
use <library/connectors/hose/barb.scad>;
$fn=128; // Face number: 128 for quality, 16 for speed.
module valve() {
georges(
diameter=[40, 15],
length=18,
wall=2,
barb=[10, 30, 0.66, 20],
channel=0.4,
angle=35
);
}
module mask() {
difference() {
union() {
difference() {
translate([-110.1, -101.9, 25]) import("library/masks/montana/body.stl");
translate([-50, -50, -65]) cube([100, 100, 100]);
}
translate([0, 0, 35]) rotate([0, 180, 180]) {
linear_extrude(35, convexity=10, scale=[0.6, 0.64]) {
import("library/masks/montana/adaptor.svg", center=true);
}
}
}
cylinder(18, d=40);
cylinder(38, d=15);
translate([0, -15, 5.66]) rotate([90, 0, 0]) cylinder(35, d=10);
translate([0, 25, 2]) cylinder(35, d=5);
translate([0, 26, 4]) rotate([270, 0, 0]) cylinder(35, d1=5);
}
}
difference() {
union() {
mask();
valve();
difference() {
translate([0, 26, 4]) rotate([270,0,0]) barb(6.35, 20, clearance=10, wall=1.2, barb=0.5);
translate([0, 25, 2]) cylinder(35, d=5);
}
}
// cut off the bottom of the barb for ease of printing
translate([0, -50, -1.5]) cube([50, 150, 100]);
}