Compare commits

..

No commits in common. "8b3772e561a08df3874e5ab87565f89cbfc84a8d" and "543e31aec7362c3a79844798b36231233222af39" have entirely different histories.

10 changed files with 29 additions and 26 deletions

View File

@ -8,7 +8,7 @@ include <components.scad>
module bottom_panel() { module bottom_panel() {
difference() { difference() {
mirror([0, 0, 1]) panel(); mirror([0, 0, 1]) topplate();
translate([0, 0, top_plate_z/2]) cube([top_plate_x-40, top_plate_y-40, top_plate_z], center=true); translate([0, 0, top_plate_z/2]) cube([top_plate_x-40, top_plate_y-40, top_plate_z], center=true);
} }
} }

View File

@ -7,7 +7,10 @@ include <parameters.scad>
include <components.scad> include <components.scad>
module bottom_panel_solo() { module bottom_panel_solo() {
difference() {
bottom_plate_with_overhang(); bottom_plate_with_overhang();
translate([0, 0, top_plate_z/2]) cube([top_plate_x-40, top_plate_y-40, top_plate_z], center=true);
}
} }
bottom_panel_solo(); bottom_panel_solo();

View File

@ -162,26 +162,19 @@ module levermountholes() {
m4_hole_countersink(); m4_hole_countersink();
} }
module base_panel() { module base_topplate() {
cube([top_plate_x, top_plate_y, top_plate_z], center=true); cube([top_plate_x, top_plate_y, top_plate_z], center=true);
} }
module panel() {
difference() {
base_panel();
top_plate_holes();
}
}
module overhang_plate() { module overhang_plate() {
roundedcube([overhang_top_plate_x, overhang_top_plate_y, top_plate_z], center=true, radius=1); roundedcube([overhang_top_plate_x, overhang_top_plate_y, top_plate_z], center=true, radius=1);
} }
// this takes the base_panel and makes it a small frame, putting a larger top plate // this takes the base_topplate and makes it a small frame, putting a larger top plate
module base_top_plate_with_raised_overhang() { module base_top_plate_with_raised_overhang() {
// make a frame out of the top plate (and keep the main plate on the center plane) // make a frame out of the top plate (and keep the main plate on the center plane)
translate([0, 0, -5]) difference() { translate([0, 0, -5]) difference() {
base_panel(); base_topplate();
cube([top_plate_x-(panel_support_width*2), top_plate_y-(panel_support_width*2), top_plate_z*2], center=true); cube([top_plate_x-(panel_support_width*2), top_plate_y-(panel_support_width*2), top_plate_z*2], center=true);
} }
translate([plate_to_frame_point_x, plate_to_frame_point_y, -2.5]) resize([0, 0, 10]) frame_mount_column(); translate([plate_to_frame_point_x, plate_to_frame_point_y, -2.5]) resize([0, 0, 10]) frame_mount_column();
@ -191,6 +184,13 @@ module base_top_plate_with_raised_overhang() {
overhang_plate(); overhang_plate();
} }
module topplate() {
difference() {
base_topplate();
top_plate_holes();
}
}
module bottom_plate_with_overhang() { module bottom_plate_with_overhang() {
difference() { difference() {
rotate([180, 0, 0]) base_top_plate_with_raised_overhang(); rotate([180, 0, 0]) base_top_plate_with_raised_overhang();
@ -218,8 +218,7 @@ module frame_mount_column() {
} }
module side_chopper() { module side_chopper() {
translate([(frame_x-frame_wall)/2+top_plate_overhang_amount, 0, 0]) translate([(frame_x-frame_wall)/2, 0, 0]) cube([frame_wall, frame_y, frame_z], center=true);
cube([frame_wall+top_plate_overhang_amount*2, overhang_top_plate_y, frame_z], center=true);
} }
module frame_connection_holes() { module frame_connection_holes() {
@ -249,8 +248,8 @@ module base_frame() {
module frame() { module frame() {
difference() { difference() {
base_frame(); base_frame();
translate([0, 0, frame_z/2]) scale([1, 1, 2]) base_panel(); translate([0, 0, frame_z/2]) scale([1, 1, 2]) base_topplate();
translate([0, 0, -frame_z/2]) scale([1, 1, 2]) base_panel(); translate([0, 0, -frame_z/2]) scale([1, 1, 2]) base_topplate();
translate([plate_to_frame_point_x, plate_to_frame_point_y, 0]) frame_hex_bolt_hole(); translate([plate_to_frame_point_x, plate_to_frame_point_y, 0]) frame_hex_bolt_hole();
translate([-plate_to_frame_point_x, plate_to_frame_point_y, 0]) frame_hex_bolt_hole(); translate([-plate_to_frame_point_x, plate_to_frame_point_y, 0]) frame_hex_bolt_hole();
translate([plate_to_frame_point_x, -plate_to_frame_point_y, 0]) frame_hex_bolt_hole(); translate([plate_to_frame_point_x, -plate_to_frame_point_y, 0]) frame_hex_bolt_hole();

View File

@ -8,7 +8,7 @@ include <components.scad>
module dir_arc_w_30mm_plus_one_panel() { module dir_arc_w_30mm_plus_one_panel() {
difference() { difference() {
panel(); topplate();
dir_arc_w_30mm_plus_one(); dir_arc_w_30mm_plus_one();
} }
} }

View File

@ -9,9 +9,8 @@ include <components.scad>
module top_panel_inset_lever_and_dir_arc_w_30mm() { module top_panel_inset_lever_and_dir_arc_w_30mm() {
difference() { difference() {
union() { union() {
panel(); topplate();
translate([(-top_plate_x/2)+55, (top_plate_y/2)-75, -((top_plate_z/2)+(lever_mount_z/2))]) translate([(-top_plate_x/2)+55, (top_plate_y/2)-75, -((top_plate_z/2)+(lever_mount_z/2))]) levermountbase();
levermountbase();
} }
dir_arc_w_30mm(); dir_arc_w_30mm();
translate([(-top_plate_x/2)+55, (top_plate_y/2)-75, 0]) levermountholes(); translate([(-top_plate_x/2)+55, (top_plate_y/2)-75, 0]) levermountholes();

View File

@ -11,8 +11,10 @@ module lever_panel() {
difference() { difference() {
// base plate // base plate
union() { union() {
translate([0,-20,0]) panel(); translate([0,-20,0])
translate([0, 0, -((top_plate_z/2)+(lever_mount_z/2))]) levermountbase(); topplate();
translate([0, 0, -((top_plate_z/2)+(lever_mount_z/2))])
levermountbase();
} }
// holes to mount the lever // holes to mount the lever
levermountholes(); levermountholes();

View File

@ -8,7 +8,7 @@ include <components.scad>
module namco_noir_plus_one_panel() { module namco_noir_plus_one_panel() {
difference() { difference() {
panel(); topplate();
noir_plus_one(); noir_plus_one();
} }
} }

View File

@ -8,7 +8,7 @@ include <components.scad>
module namco_noir_plus_two_panel() { module namco_noir_plus_two_panel() {
difference() { difference() {
panel(); topplate();
noir_plus_one(); noir_plus_one();
translate([32.94-3.47-3.47, -78+7.37+4.49, 0]) noir_button_p1(); translate([32.94-3.47-3.47, -78+7.37+4.49, 0]) noir_button_p1();
} }

View File

@ -8,7 +8,7 @@ include <components.scad>
module top_panel_inset_sega_2p_plus_one_plus_control() { module top_panel_inset_sega_2p_plus_one_plus_control() {
difference() { difference() {
panel(); topplate();
sega_2p_plus_one(); sega_2p_plus_one();
rotate([0, 0, 180]) side_chopper(); rotate([0, 0, 180]) side_chopper();
translate([89, 30, 0]) button_24mm_hole(); translate([89, 30, 0]) button_24mm_hole();

View File

@ -8,7 +8,7 @@ include <components.scad>
module sega_2p_plus_one_panel() { module sega_2p_plus_one_panel() {
difference() { difference() {
panel(); topplate();
sega_2p_plus_one(); sega_2p_plus_one();
} }
} }