Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////
- //
- // twin_csg_stl("p2");
- // twin_csg_stl("p1");
- // twin_csg_stl("clutch_axle");
- // twin_csg_stl("clutch_gear_AA");
- // twin_csg_stl("clutch_gear_BB");
- // twin_csg_stl("motor_A_gear_AA");
- // twin_csg_stl("motor_A_gear_BB");
- // twin_csg_stl("motor_B_gear_AA");
- // twin_csg_stl("motor_A_gearbox_shell");
- // twin_csg_stl("motor_A_gearbox_gears");
- // twin_csg_stl("motor_A_motor");
- // twin_csg_stl("motor_B_gearbox_shell");
- // twin_csg_stl("motor_B_gearbox_gears");
- // twin_csg_stl("motor_B_motor");
- // twin_csg_stl("CAM");
- // twin_csg_stl("CAM_p1");
- // twin_csg_stl("CAM_p2");
- //
- //////////////////////////////////////////////////////
- module twin_csg_stl (select="",c,scafold=false){
- if(select=="p2") p2()children();
- if(select=="p1") p1()children();
- if(select=="clutch_axle") clutch_axle()children();
- if(select=="clutch_gear_AA") clutch_gear_AA()children();
- if(select=="clutch_gear_BB") clutch_gear_BB()children();
- if(select=="motor_A_gear_AA") motor_A_gear_AA()children();
- if(select=="motor_A_gear_BB") motor_A_gear_BB()children();
- if(select=="motor_B_gear_AA") motor_B_gear_AA()children();
- if(select=="motor_A_gearbox_shell") motor_A_gearbox_shell()children();
- if(select=="motor_A_gearbox_gears") motor_A_gearbox_gears()children();
- if(select=="motor_A_motor") motor_A_motor()children();
- if(select=="motor_B_gearbox_shell") motor_B_gearbox_shell()children();
- if(select=="motor_B_gearbox_gears") motor_B_gearbox_gears()children();
- if(select=="motor_B_motor") motor_B_motor()children();
- if(select=="CAM") CAM()children();
- if(select=="CAM_p1") CAM_p1()children();
- if(select=="CAM_p2") CAM_p2()children();
- module p2(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/p2.stl", convexity=3);
- children();
- }
- }
- module p1(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/p1.stl", convexity=3);
- children();
- }
- }
- module clutch_axle(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/clutch_axle.stl", convexity=3);
- children();
- }
- }
- module clutch_gear_AA(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/clutch_gear_AA.stl", convexity=3);
- children();
- }
- }
- module clutch_gear_BB(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/clutch_gear_BB.stl", convexity=3);
- children();
- }
- }
- module motor_A_gear_AA(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_A_gear_AA.stl", convexity=3);
- children();
- }
- }
- module motor_A_gear_BB(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_A_gear_BB.stl", convexity=3);
- children();
- }
- }
- module motor_B_gear_AA(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_B_gear_AA.stl", convexity=3);
- children();
- }
- }
- module motor_A_gearbox_shell(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_A_gearbox_shell.stl", convexity=3);
- children();
- }
- }
- module motor_A_gearbox_gears(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_A_gearbox_gears.stl", convexity=3);
- children();
- }
- }
- module motor_A_motor(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_A_motor.stl", convexity=3);
- children();
- }
- }
- module motor_B_gearbox_shell(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_B_gearbox_shell.stl", convexity=3);
- children();
- }
- }
- module motor_B_gearbox_gears(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_B_gearbox_gears.stl", convexity=3);
- children();
- }
- }
- module motor_B_motor(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/motor_B_motor.stl", convexity=3);
- children();
- }
- }
- module CAM(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/CAM.stl", convexity=3);
- children();
- }
- }
- module CAM_p1(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/CAM_p1.stl", convexity=3);
- children();
- }
- }
- module CAM_p2(){
- lt_ = dict(twin_csg_transforms,parent_module(2),parent_module(0));
- lt = lt_?lt_:translation([0,0,0]);
- multmatrix(lt){
- if(scafold==false)
- color(
- c?c[0]:dict(twin_csg_colors,parent_module(0))[0],
- c?c[1]:dict(twin_csg_colors,parent_module(0))[1])
- import("twin.csg.stl/CAM_p2.stl", convexity=3);
- children();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement