Skip to content

Instantly share code, notes, and snippets.

@nfd9001
Created August 22, 2023 04:42
Show Gist options
  • Save nfd9001/ab4d433a6a303d5d376910cf9b4639bb to your computer and use it in GitHub Desktop.
Save nfd9001/ab4d433a6a303d5d376910cf9b4639bb to your computer and use it in GitHub Desktop.
Trader Joe's shampoo bar box
include <BOSL2/std.scad>
$fn=200;
//Warning: the tolerances here follow the shape of the bar *very* closely and it's too snug of a fit.
//Probably adjust another several tenths of a mm out or scale the whole thing up a few percent in your slicer
//82,65.5, depth 24.75
//base
difference(){
linear_extrude(28) ellipse(r=[82/2+1.1,65.5/2+1.1]);
up(1)linear_extrude(28) ellipse(r=[82/2+.1,65.5/2+.1]); //bar dimensions + slight airspace
}
//lid
up(45) difference(){
up(1) linear_extrude(15) ellipse(r=[84/2+1.2,67.5/2+1.2]);
linear_extrude(15) ellipse(r=[82/2+1.3,65.5/2+1.3]); //previous exterior
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment