Commit 96c5eaf3 authored by Julian Stirling's avatar Julian Stirling 🐧
Browse files

Add an oil drop to the oiling render

parent f5fa06b1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ module render_actuator_assembly(frame, manual=false, optics_version="rms"){
        rotate_y(90){
            lead_screw_assembly(manual=manual, exploded=false);
            place_part(x_lead_oil_placement()){
                oil_bottle();
                oil_bottle(oil_drop=true);
            }
        }
    }
+4 −3
Original line number Diff line number Diff line
@@ -115,9 +115,10 @@ function x_lead_assembly_placement_exp() = create_placement_dict(x_lead_assembly
function y_lead_assembly_placement() = create_placement_dict(y_lead_assembly_pos(), rotation1=[0, 0, 135]);
function z_lead_assembly_placement() = create_placement_dict(z_lead_assembly_pos(), rotation3=z_actuator_rot(), rotation1=[0, 0, -90]);

function x_lead_oil_placement() = create_placement_dict(translation=[3,-1,-12],
                                                        rotation3=[0, 0, -20],
                                                        rotation1=[0, -100, 0]);
function x_lead_oil_placement() = create_placement_dict(translation=[1, -1.9, -7],
                                                        rotation3=[0, 0, -60],
                                                        rotation2=[0, -85, 0],
                                                        rotation1=[0, 0, 95]);

function x_foot_placement() = create_placement_dict(x_actuator_pos(PARAMS), [0, 0, -45]);
function y_foot_placement() = create_placement_dict(y_actuator_pos(PARAMS), [0, 0, 45]);
+8 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ module allen_ball(diameter){
    }
}

module oil_bottle(){
module oil_bottle(oil_drop=false){
    bottle_size = [50, 25, 60];
    nozzle_height = 22;
    neck_d=15;
@@ -97,6 +97,13 @@ module oil_bottle(){
                cylinder(d1=4.5, d2=3, h=nozzle_height);
            }
        }
        if (oil_drop){
            coloured_render("DarkGoldenrod", .5){
                translate_z(bottle_size.z+nozzle_height+2){
                    sphere(d=4, $fn=32);
                }
            }
        }
        rotate_z(180){
            coloured_render("White"){
                translate([0, -bottle_size.y/2-tiny(), bottle_size.z*.4]){