A lot more work on the Microcar design. I'm not yet at all satisfied with this.

This commit is contained in:
Simon Brooke 2026-09-10 22:25:49 +01:00
parent 0e97b3b267
commit 8e0e6adacb
6 changed files with 184 additions and 64 deletions

View file

@ -1,3 +1,11 @@
/**
* tub.scad
*
* The tub of a microcar.
*/
include <BOSL2/std.scad>
$fn = $preview ? 32 : 256;
a_pillar_y = -400; // y location of face of 'A' pillar
@ -28,7 +36,7 @@ floor_width = 1500;
// angle of the front bulkhead to vertical
layback_angle_f = 30;
// angle of the rear bulkhead to vertical
layback_angle_r = 45;
layback_angle_r = 50;
sheet_thickness = 8;
sill_max_height = bb_height;
@ -84,7 +92,7 @@ module sill( floor_length = 1100) {
}
rotate([-3, 0, 0])
translate([0, cr - (sill_width/2), 0])
cylinder( h = cowl_height,
cylinder( h = cowl_height,
r = cr);
}
}
@ -100,17 +108,23 @@ module front_bulkhead() {
module rear_bulkhead() {
}
module tub(fl=floor_length, fw=floor_width, st=sheet_thickness,
sw=sill_width) {
cube([fl, fw, st],
center=true);
battery_box();
cube([floor_length, floor_width, sheet_thickness],
center=true);
battery_box();
translate([0, ( floor_width/2) + (sill_width/2), 0])
sill();
mirror([0, 1, 0])
translate([0,
( floor_width/2) + (sill_width/2), 0])
translate([0, ( fw/2) + (sw/2), 0])
sill();
front_bulkhead();
mirror([0, 1, 0])
translate([0,
( fw/2) + (sw/2), 0])
sill();
front_bulkhead();
rear_bulkhead();
}
// tub();