Insert Chateau Combo
Fleetingusing Boardgame-Insert-Toolkit
Prompt pour générer un insert
Crée un insert pour impression 3D en utilisant le Boardgame Insert Toolkit v4.
Dimensions extérieures de la boîte : 90mm x 120mm x 30mm (largeur x longueur x hauteur)
Compartiments :
- Compartiment 1 : environ 5cm de long
- Compartiment 2 : environ 7cm de long
Les compartiments sont alignés sur la longueur (Y), séparés par un mur. Épaisseur des murs : 1.5mm
Génère le fichier .scad et le .stl dans home/sam/test/next/config/config
Code
rm -rf /home/sam/test/insert_chateau
mkdir -p /home/sam/test/insert_chateau
cd /home/sam/test/insert_chateau
git clone https://github.com/dppdppd/The-Boardgame-Insert-Toolkit bit
Cloning into 'bit'...
remote: Enumerating objects: 1754, done.
(1130/1130), done.
(407/407), done.
(1649/1754), 31.98 MiB | 9.13 MiB/s
remote: Total 1754 (delta 869), reused 936 (delta 688), pack-reused 624 (from 2)
(1754/1754), 33.06 MiB | 9.18 MiB/s, done.
(1177/1177), done.
git -C bit show | head -1
commit 88c1d9d4b8698c1917ba7f32d42ab4a1983c19d5
include </home/sam/test/insert_chateau/bit/boardgame_insert_toolkit_lib.4.scad>;
// Dimensions de l'insert - DOIT TENIR DANS 12cm x 9cm
// Dimensions extérieures fixes: 120mm x 90mm x 30mm
box_length = 120; // 12cm - FIXE
box_width = 90; // 9cm - FIXE
box_height = 30; // 3cm
wall = 1.5;
// Calcul des compartiments pour tenir dans 120mm et 90mm:
// Longueur: 120 = wall + comp1 + wall + comp2 + wall -> comp1+comp2 = 115.5mm
// Largeur: 90 = wall + compartiment + wall -> compartiment = 87mm
comp1_length = 48; // ~5cm
comp2_length_adj = box_length - 3*wall - comp1_length; // = 67.5mm (~7cm)
comp_width = box_width - 2*wall; // = 87mm
data =
[
// Globals
[ G_PRINT_LID_B, false ],
[ G_PRINT_BOX_B, true ],
[ G_ISOLATED_PRINT_BOX, "chateau_combo" ],
[ G_VISUALIZATION_B, false ],
[ G_WALL_THICKNESS, wall ],
[ G_TOLERANCE, 0.15 ],
[ G_TOLERANCE_DETENT_POS, 0.1 ],
[ G_DEFAULT_FONT, "Arial:style=Bold" ],
[ OBJECT_BOX,
[ NAME, "chateau_combo" ],
[ BOX_SIZE_XYZ, [box_width, box_length, box_height] ],
[ BOX_NO_LID_B, t ],
[ BOX_STACKABLE_B, f ],
[ LABEL,
[ LBL_TEXT, "Chateau Combo" ],
[ LBL_SIZE, AUTO ],
[ LBL_PLACEMENT, FRONT ],
],
// Premier compartiment: 87mm x 48mm
[ BOX_FEATURE,
[ FTR_COMPARTMENT_SIZE_XYZ, [comp_width, comp1_length, box_height - 1] ],
[ FTR_NUM_COMPARTMENTS_XY, [1, 1] ],
[ FTR_SHAPE, FILLET ],
[ POSITION_XY, [0, 0] ],
],
// Deuxième compartiment: 87mm x 67.5mm
[ BOX_FEATURE,
[ FTR_COMPARTMENT_SIZE_XYZ, [comp_width, comp2_length_adj, box_height - 1] ],
[ FTR_NUM_COMPARTMENTS_XY, [1, 1] ],
[ FTR_SHAPE, FILLET ],
[ POSITION_XY, [0, comp1_length + wall] ],
],
],
];
Make(data);
openscad insert.scad -o insert.stl
ECHO: "
The Boardgame Insert Toolkit
https://github.com/dppdppd/The-Boardgame-Insert-Toolkit
Copyright 2020 Ido Magal
Creative Commons - Attribution - Non-Commercial - Share Alike.
https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
Version 4.00
"
Geometries in cache: 57
Geometry cache size in bytes: 8840048
CGAL Polyhedrons in cache: 39
CGAL cache size in bytes: 27430000
Total rendering time: 0:00:11.761
Top level object is a 3D object:
Simple: yes
Vertices: 5226
Halfedges: 15678
Edges: 7839
Halffacets: 5270
Facets: 2635
Volumes: 2
ipfa insert.stl|sed 's/filename=//'