Browse Source

Quite far with the housing.

master
Maximilian Stiefel 7 years ago
parent
commit
bbd247e178
  1. BIN
      cad/housing
  2. 5
      cad/open_box.scad
  3. 26
      cad/playing.scad

BIN
cad/housing

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

5
cad/open_box.scad

@ -11,14 +11,13 @@ module open_box(width, length, height, thickness, allowance)
/////////////////////////////////////////////////////////////////////////
// Vars
/////////////////////////////////////////////////////////////////////////
edge_rounding = 8;
edge_rounding = 6;
compensation = abs(thickness-edge_rounding);
/////////////////////////////////////////////////////////////////////////
// Action
/////////////////////////////////////////////////////////////////////////
difference(){
difference(){
// Hull 4 cylinders which are compensated against the thickness
// so the actual desired thickness and edge rounding is always achieved.
hull(){

26
cad/playing.scad

@ -1,26 +0,0 @@
/////////////////////////////////////////////////////////////////////////////////
// Housing box for UppSense first tries.
//
// Author: Maximilian Stiefel
// Last modification: 26.04.3017
/////////////////////////////////////////////////////////////////////////////////
use <open_box.scad>
/////////////////////////////////////////////////////////////////////////////////
// Vars
/////////////////////////////////////////////////////////////////////////////////
length = 50;
width = 80;
height = 45;
thickness = 5;
allowance = 1;
lid_depth = 5;
difference(){
// Using my open box module for creating a simple box
open_box(length, width, height, thickness, allowance);
// Creating a depening for the lid
translate([0, 0, height])
cube([length + 2*allowance + 2*thickness, width + 2*allowance + 2*thickness, lid_depth]);
}
Loading…
Cancel
Save