in its own model, although I haven't yet lifted it so that its wheel sits on the ground plane. I've rescaled it so that the wheel is the correct size. I think each individual model should be build to the grid origin within its own file, but that major components (subframe, fourbar) should be at the correct vertical height for final assembly.
63 lines
1.5 KiB
OpenSCAD
63 lines
1.5 KiB
OpenSCAD
// tricycle.scad:
|
|
|
|
// (c) Simon Brooke 2025; CC-BY-SA
|
|
|
|
|
|
include <BentSim/Library/Bike_accessories.scad>
|
|
include <SprocketGenerator2/files/Sprocket_Generator_v2_example_10.scad>
|
|
|
|
include <chainset.scad>
|
|
include <epicyclic.scad>
|
|
|
|
module subframe () {
|
|
// front leg (supports cross-shaft, epicyclic, motor
|
|
translate([-25, 886, -50])
|
|
color("silver")
|
|
cube([50, 25, 329]);
|
|
// bottom bracket leg
|
|
translate([-25, 700, -90])
|
|
color("silver")
|
|
cube([50, 25, 443]);
|
|
// wheel leg
|
|
translate([-100, 345, -111])
|
|
rotate([0, 7, 0])
|
|
color("silver")
|
|
cube([25, 75, 519]);
|
|
// front upper
|
|
translate([-25, 1143, 186])
|
|
rotate([70, 0, 0])
|
|
color("silver")
|
|
cube([50, 25, 471]);
|
|
// central upper
|
|
translate([-25, 714, 343])
|
|
rotate([82, 0, 0])
|
|
color("silver")
|
|
cube([50, 25, 529]);
|
|
// rear leg
|
|
translate([-25, 0, 0])
|
|
rotate([-23, 0, 0])
|
|
color("silver")
|
|
cube([50, 25, 491]);
|
|
|
|
// wheel
|
|
translate([0, 382, 93])
|
|
rotate([0, 0, 90])
|
|
wheel(rim=451, spoke_nbr=0);
|
|
|
|
translate([-42, 382, 93])
|
|
rotate([0, 90, 0])
|
|
color("grey")
|
|
sprocket(teeth=30, roller=7.9, pitch=12.7);
|
|
|
|
rotate([90, 0, 90])
|
|
translate([680, 105, -40])
|
|
chainset( teeth=82, crank=140);
|
|
|
|
rotate([0,90,0])
|
|
translate([-93, 960, 24])
|
|
epicyclic();
|
|
|
|
}
|
|
|
|
// subframe();
|