Dodane przegrótki do wkładek oraz wypustki
This commit is contained in:
139
any_box_1_1_2.json
Normal file
139
any_box_1_1_2.json
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
{
|
||||||
|
"fileFormatVersion": "1",
|
||||||
|
"parameterSets": {
|
||||||
|
"Podgląd": {
|
||||||
|
"X": "60",
|
||||||
|
"Y": "50",
|
||||||
|
"Y_magnet_alignment": "center",
|
||||||
|
"Z": "50",
|
||||||
|
"add_prying_notch": "false",
|
||||||
|
"add_texture_to_complex_shell": "false",
|
||||||
|
"barrel_chamfer": "0.20000000000000001",
|
||||||
|
"barrel_diameter": "4.5999999999999996",
|
||||||
|
"barrel_rotary_tolerance": "0.20000000000000001",
|
||||||
|
"barrel_tolerance": "0.14999999999999999",
|
||||||
|
"base_magnet_diameter": "6",
|
||||||
|
"base_magnet_height": "2",
|
||||||
|
"base_magnet_tolerance": "0.20000000000000001",
|
||||||
|
"base_magnets": "false",
|
||||||
|
"box_depth": "2",
|
||||||
|
"box_height": "10",
|
||||||
|
"box_length": "20",
|
||||||
|
"closure_type": "snap rim",
|
||||||
|
"complex_pattern": "hex_scaffold",
|
||||||
|
"complex_resolution": "5",
|
||||||
|
"complex_scale": "12",
|
||||||
|
"connect_magnets": "true",
|
||||||
|
"custom_barrel_count": "2",
|
||||||
|
"cylinder_diameter": "6",
|
||||||
|
"cylinder_height": "2",
|
||||||
|
"dimensions_for": "inside",
|
||||||
|
"divider_Z_height": "0.5",
|
||||||
|
"divider_chamfer": "0.80000000000000004",
|
||||||
|
"divider_rounding": "1.3",
|
||||||
|
"divider_thickness": "1.3",
|
||||||
|
"dividers": "false",
|
||||||
|
"dpin": "2.2000000000000002",
|
||||||
|
"exterior_type": "textured",
|
||||||
|
"extra_clearance": "15",
|
||||||
|
"extra_finger_clearance": "4",
|
||||||
|
"extra_wall": "0",
|
||||||
|
"fill_bottom": "true",
|
||||||
|
"gridfinity_support": "false",
|
||||||
|
"hinge_height_offset": "6",
|
||||||
|
"hinge_inset": "0.33000000000000002",
|
||||||
|
"hinge_inset_rounding": "0.5",
|
||||||
|
"hinge_type": "snap",
|
||||||
|
"inner_rounding": "6",
|
||||||
|
"invert_snap_rim": "true",
|
||||||
|
"latch_amount": "1",
|
||||||
|
"latch_chamfer": "0.20000000000000001",
|
||||||
|
"latch_clamp_strength": "0.12",
|
||||||
|
"latch_gap": "20",
|
||||||
|
"latch_inset": "2",
|
||||||
|
"latch_joint_tolerance": "-0.20000000000000001",
|
||||||
|
"latch_length": "25",
|
||||||
|
"latch_thickness": "4",
|
||||||
|
"latch_tolerance": "0.20000000000000001",
|
||||||
|
"latch_width": "20",
|
||||||
|
"layer_height": "0.20000000000000001",
|
||||||
|
"layers_below_magnet": "2",
|
||||||
|
"layers_over_magnet": "4",
|
||||||
|
"lid": "true",
|
||||||
|
"lid_angle": "35",
|
||||||
|
"lid_downset": "10",
|
||||||
|
"lid_groove": "false",
|
||||||
|
"lid_groove_alignment": "lip",
|
||||||
|
"lid_groove_angle": "45",
|
||||||
|
"lid_groove_chamfer": "0.20000000000000001",
|
||||||
|
"lid_groove_depth": "2",
|
||||||
|
"lid_groove_height": "6",
|
||||||
|
"lid_groove_offset": "1",
|
||||||
|
"lid_groove_width_factor": "0.5",
|
||||||
|
"lid_handle": "false",
|
||||||
|
"lid_handle_alignment": "top",
|
||||||
|
"lid_handle_angle": "45",
|
||||||
|
"lid_handle_chamfer": "0.20000000000000001",
|
||||||
|
"lid_handle_offset": "1",
|
||||||
|
"lid_handle_outset": "1",
|
||||||
|
"lid_handle_thickness": "1",
|
||||||
|
"lid_handle_width_factor": "0.5",
|
||||||
|
"lid_tolerance": "0.10000000000000001",
|
||||||
|
"lip_inset": "0.33000000000000002",
|
||||||
|
"lip_inset_rounding": "0.5",
|
||||||
|
"magnet_array_width_factor": "1",
|
||||||
|
"magnet_chamfer": "0.40000000000000002",
|
||||||
|
"magnet_pause_helper": "true",
|
||||||
|
"magnet_tolerance": "0.20000000000000001",
|
||||||
|
"magnet_type": "cylinder",
|
||||||
|
"max_barrel_length": "5",
|
||||||
|
"minimum_back_wall_thickness": "1.6000000000000001",
|
||||||
|
"minimum_magnet_gap": "3",
|
||||||
|
"nozzle_diameter": "0.41999999999999998",
|
||||||
|
"outer_chamfer": "3",
|
||||||
|
"outer_rounding": "10",
|
||||||
|
"overrider_automatic_inner_rounding": "false",
|
||||||
|
"pin_floppiness": "0.59999999999999998",
|
||||||
|
"pin_insert_direction": "45",
|
||||||
|
"pip_barrel_outset": "0.5",
|
||||||
|
"pip_body_lid_tolerance": "0.10000000000000001",
|
||||||
|
"regular_spaced_X_divider": "2",
|
||||||
|
"regular_spaced_Y_divider": "1",
|
||||||
|
"resolution": "8",
|
||||||
|
"rim": "true",
|
||||||
|
"rim_height": "0.80000000000000004",
|
||||||
|
"rim_offset": "0.20000000000000001",
|
||||||
|
"rim_tolerance": "0.10000000000000001",
|
||||||
|
"rotate_texture": "false",
|
||||||
|
"scaffold_thickness": "0.40000000000000002",
|
||||||
|
"shape_method": "angle",
|
||||||
|
"show_only_box": "false",
|
||||||
|
"show_only_latch": "false",
|
||||||
|
"show_only_lid": "false",
|
||||||
|
"show_only_tray_1": "false",
|
||||||
|
"show_only_tray_2": "false",
|
||||||
|
"show_trays": "false",
|
||||||
|
"snap_hinge_tolerance": "-0.10000000000000001",
|
||||||
|
"snap_rim_depth": "0.20000000000000001",
|
||||||
|
"snap_rim_height_factor": "6",
|
||||||
|
"snap_rim_tolerance": "0.029999999999999999",
|
||||||
|
"stacking_lip": "false",
|
||||||
|
"tex_depth": "1.2",
|
||||||
|
"tex_depth_wallthickness_factor": "0.75",
|
||||||
|
"texture_pattern": "stripes",
|
||||||
|
"texture_scale": "12",
|
||||||
|
"tray_1_div_x": "0",
|
||||||
|
"tray_1_div_y": "0",
|
||||||
|
"tray_2_div_x": "0",
|
||||||
|
"tray_2_div_y": "0",
|
||||||
|
"tray_depth": "15",
|
||||||
|
"tray_tolerance": "0.29999999999999999",
|
||||||
|
"tray_wall_thickness": "1.6000000000000001",
|
||||||
|
"units_X": "2",
|
||||||
|
"units_Y": "1",
|
||||||
|
"units_Z": "6",
|
||||||
|
"use_custom_barrel_count": "false",
|
||||||
|
"wallthickness": "3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -288,7 +288,6 @@ barrel_rotary_tolerance=0.2;
|
|||||||
//[degrees] allows for more rotation, does not affect pip hinge
|
//[degrees] allows for more rotation, does not affect pip hinge
|
||||||
extra_clearance = 15;//[0:60]
|
extra_clearance = 15;//[0:60]
|
||||||
|
|
||||||
|
|
||||||
/* [⚑ Co drukowac / What to print] */
|
/* [⚑ Co drukowac / What to print] */
|
||||||
// Pokaz OBIE wkladki (ukrywa reszte)
|
// Pokaz OBIE wkladki (ukrywa reszte)
|
||||||
show_trays = false;
|
show_trays = false;
|
||||||
@@ -297,6 +296,14 @@ show_only_tray_1 = false;
|
|||||||
// Pokaz TYLKO DRUGA wkladke (docinana)
|
// Pokaz TYLKO DRUGA wkladke (docinana)
|
||||||
show_only_tray_2 = false;
|
show_only_tray_2 = false;
|
||||||
|
|
||||||
|
// --- Przegrodki PIERWSZA wkladka (Gorna) ---
|
||||||
|
tray_1_div_x = 0;
|
||||||
|
tray_1_div_y = 0;
|
||||||
|
|
||||||
|
// --- Przegrodki DRUGA wkladka (Dolna) ---
|
||||||
|
tray_2_div_x = 0;
|
||||||
|
tray_2_div_y = 0;
|
||||||
|
|
||||||
// Pokaz TYLKO dol pudelka (bez klipsa)
|
// Pokaz TYLKO dol pudelka (bez klipsa)
|
||||||
show_only_box = false;
|
show_only_box = false;
|
||||||
// Pokaz TYLKO pokrywke
|
// Pokaz TYLKO pokrywke
|
||||||
@@ -308,7 +315,7 @@ show_only_latch = false;
|
|||||||
tray_depth = 15.0;
|
tray_depth = 15.0;
|
||||||
// Grubosc scianki wkladki w mm
|
// Grubosc scianki wkladki w mm
|
||||||
tray_wall_thickness = 1.6;
|
tray_wall_thickness = 1.6;
|
||||||
// Luz pomiedzy pudelkiem a wkladka (na kazda strone)
|
// Luz pomiedzy pudelkiem a wkladka
|
||||||
tray_tolerance = 0.3;
|
tray_tolerance = 0.3;
|
||||||
|
|
||||||
//ͼϾ
|
//ͼϾ
|
||||||
@@ -2867,13 +2874,21 @@ module complex_shell(){
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
module insert_tray(t_outerZ) {
|
|
||||||
|
|
||||||
|
|
||||||
|
module insert_tray(t_outerZ, div_x=0, div_y=0) {
|
||||||
t_outerX = innerX - tray_tolerance * 2;
|
t_outerX = innerX - tray_tolerance * 2;
|
||||||
t_outerY = innerY - tray_tolerance * 2;
|
t_outerY = innerY - tray_tolerance * 2;
|
||||||
|
|
||||||
t_outer_fillet = max(inner_fillet - tray_tolerance, 0.1);
|
t_outer_fillet = max(inner_fillet - tray_tolerance, 0.1);
|
||||||
t_inner_fillet = max(t_outer_fillet - tray_wall_thickness, 0.1);
|
t_inner_fillet = max(t_outer_fillet - tray_wall_thickness, 0.1);
|
||||||
|
|
||||||
|
int_x = t_outerX - tray_wall_thickness * 2;
|
||||||
|
int_y = t_outerY - tray_wall_thickness * 2;
|
||||||
|
|
||||||
|
union() {
|
||||||
|
// Główna skorupa tacki
|
||||||
difference() {
|
difference() {
|
||||||
offset_sweep(
|
offset_sweep(
|
||||||
rect([t_outerX, t_outerY], rounding=t_outer_fillet),
|
rect([t_outerX, t_outerY], rounding=t_outer_fillet),
|
||||||
@@ -2892,34 +2907,56 @@ module insert_tray(t_outerZ) {
|
|||||||
anchor="base"
|
anchor="base"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --- Nowość: Wypustki do wyciągania ---
|
||||||
|
// Pojawią się tylko, jeśli nie ma żadnych przegródek
|
||||||
|
if (div_x == 0 && div_y == 0) {
|
||||||
|
tab_size = 6; // szerokość wypustki
|
||||||
|
tab_depth = 2; // jak bardzo wystaje do środka
|
||||||
|
|
||||||
|
up(t_outerZ - 2) // umieść na górnej krawędzi
|
||||||
|
xflip_copy(offset = int_x/2)
|
||||||
|
cuboid([tab_depth, tab_size, 2], anchor=RIGHT+TOP, chamfer=0.5, edges=BOT+FRONT+BACK);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Przegródki X
|
||||||
|
if (div_x > 0) {
|
||||||
|
up(tray_wall_thickness)
|
||||||
|
xcopies(spacing=int_x/(div_x+1), n=div_x)
|
||||||
|
cuboid([tray_wall_thickness, int_y, t_outerZ - tray_wall_thickness], anchor=BOT);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Przegródki Y
|
||||||
|
if (div_y > 0) {
|
||||||
|
up(tray_wall_thickness)
|
||||||
|
ycopies(spacing=int_y/(div_y+1), n=div_y)
|
||||||
|
cuboid([int_x, tray_wall_thickness, t_outerZ - tray_wall_thickness], anchor=BOT);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ==============================================
|
// ==============================================
|
||||||
// GLOWNE WYWOLANIE (Pudelko albo wkladki)
|
// GLOWNE WYWOLANIE (Finalna wersja)
|
||||||
// ==============================================
|
// ==============================================
|
||||||
|
|
||||||
if (show_trays || show_only_tray_1 || show_only_tray_2) {
|
if (show_trays || show_only_tray_1 || show_only_tray_2) {
|
||||||
// Oblicza pozostale miejsce na druga wkladke (pod sam zawias)
|
|
||||||
bottom_internal_height = (outerZ - lip_outer_downset) - wallthickness;
|
bottom_internal_height = (outerZ - lip_outer_downset) - wallthickness;
|
||||||
auto_depth = max(bottom_internal_height - tray_depth - 0.5, 2);
|
auto_depth = max(bottom_internal_height - tray_depth - 0.5, 2);
|
||||||
|
|
||||||
if (show_trays) {
|
if (show_trays) {
|
||||||
// Rysuje obie wkladki obok siebie
|
insert_tray(tray_depth, tray_1_div_x, tray_1_div_y);
|
||||||
insert_tray(tray_depth);
|
|
||||||
right(outerX + 15)
|
right(outerX + 15)
|
||||||
insert_tray(auto_depth);
|
insert_tray(auto_depth, tray_2_div_x, tray_2_div_y);
|
||||||
} else if (show_only_tray_1) {
|
} else if (show_only_tray_1) {
|
||||||
// Rysuje tylko pierwsza wkladke (na srodku)
|
insert_tray(tray_depth, tray_1_div_x, tray_1_div_y);
|
||||||
insert_tray(tray_depth);
|
|
||||||
} else if (show_only_tray_2) {
|
} else if (show_only_tray_2) {
|
||||||
// Rysuje tylko druga wkladke (na srodku)
|
insert_tray(auto_depth, tray_2_div_x, tray_2_div_y);
|
||||||
insert_tray(auto_depth);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Rysuje standardowe pudelko
|
|
||||||
hsv(h=170,s=.05,v=.8)
|
hsv(h=170,s=.05,v=.8)
|
||||||
render()
|
render()
|
||||||
printable_box();
|
printable_box();
|
||||||
|
|||||||
Reference in New Issue
Block a user