93 lines
2.2 KiB
OpenSCAD
93 lines
2.2 KiB
OpenSCAD
$fn=160;
|
|
|
|
// # import original Nibble and remove Mounts
|
|
module Original_nibble(){
|
|
union(){
|
|
import("../Printabals/EEG-Cap-Qriginal/files/spool-diffuser-v3.stl", convexity = 5);
|
|
rotate([0,0,60],center=true) import("../Printabals/EEG-Cap-Qriginal/files/spool-diffuser-v3.stl", convexity = 5);
|
|
}
|
|
}
|
|
|
|
// # Create Mounting Slots on original (Tophalf)
|
|
module nibble_for_Dropinnibble(){
|
|
difference()
|
|
{
|
|
difference(){
|
|
Original_nibble();
|
|
trimod(5.4,3.1);
|
|
}
|
|
translate([0,0,-0.4])cylinder(h = 1, d2=16, d1=16 ,center=true);
|
|
}
|
|
}
|
|
|
|
// # Create Outer Nibbles do fit against mainblock
|
|
module Outernibbles(){
|
|
intersection(){
|
|
union(){
|
|
translate([0,0,-0.5])cylinder(h = 1, d2=16, d1=16 ,center=true);
|
|
Original_nibble();
|
|
}
|
|
trimod(5.6,2.9);
|
|
}
|
|
}
|
|
|
|
|
|
// # Mounting Cutter Function
|
|
module trimod(space,h){
|
|
union(){
|
|
for ( i = [0:3] ){
|
|
rotate([0,0,120*i])
|
|
translate([space,-25/2,-1])cube([5,25,h]);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// # create down half
|
|
module downshell(){
|
|
difference(){
|
|
union() {
|
|
Outernibbles();
|
|
translate([0,0,-1])cylinder(h = 2, d2=16, d1=16 ,center=true);
|
|
translate([0,0,-2.25])cylinder(h = .5, d2=16, d1=15.5 ,center=true);
|
|
}
|
|
union(){
|
|
// Magnet
|
|
translate([0,0,-3])cylinder(d=5.1,h=2,cernter=true);
|
|
union(){
|
|
translate([0,0,0])scale([1,1,0.2])sphere(d=13);
|
|
cylinder(d=13,h=0.5);
|
|
translate([0,0,0.5])scale([1,1,0.25])sphere(d=13);
|
|
}
|
|
difference(){
|
|
union(){
|
|
translate([0,0,0.1]){
|
|
rotate([0,100,0]) wire();
|
|
rotate([0,100,180]) wire();
|
|
}
|
|
}
|
|
union(){
|
|
translate([0,-5,0])cube([10,10,10]);
|
|
rotate([0,0,180])translate([0,-5,0])cube([10,10,10]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
module wire(){
|
|
union(){
|
|
for ( i = [-100:100]){
|
|
translate([0,(i/100)*1.8,0])cylinder(h = 20, d=1.81, center=true);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// base for magnets
|
|
//downshell();
|
|
|
|
// Lighting insert
|
|
nibble_for_Dropinnibble();
|