From: <adr...@us...> - 2010-12-22 23:51:07
|
Revision: 3974 http://reprap.svn.sourceforge.net/reprap/?rev=3974&view=rev Author: adrian-bowyer Date: 2010-12-22 23:51:01 +0000 (Wed, 22 Dec 2010) Log Message: ----------- More OpenSCAD Huxley. Modified Paths: -------------- trunk/huxley/OpenSCAD-huxley/frame_vertex.scad Added Paths: ----------- trunk/huxley/OpenSCAD-huxley/y_bar_clamp.scad Modified: trunk/huxley/OpenSCAD-huxley/frame_vertex.scad =================================================================== --- trunk/huxley/OpenSCAD-huxley/frame_vertex.scad 2010-12-22 21:40:53 UTC (rev 3973) +++ trunk/huxley/OpenSCAD-huxley/frame_vertex.scad 2010-12-22 23:51:01 UTC (rev 3974) @@ -3,112 +3,27 @@ include <parameters.scad>; use <library.scad>; -module basic_vertex(round = false) -{ - difference() - { - union() - { - for(side = [1, -1]) - { - rotate([0, 0, side * 30]) translate([0, vertexoffset, 0]) - { - if (round) - { - translate([-side * partthick / 4, 0, 0]) cube([partthick / 2, partthick, partthick], center = true); - rotate([0, 90, 0]) cylinder(h = partthick, r = partthick / 2, center = true, $fn = fn); - rotate([90, 0, 0]) cylinder(h = partthick, r = partthick / 2, center = true, $fn = fn); - } else - cube([partthick, partthick, partthick], center = true); - translate([side * -rodsize, 0, 0]) - cylinder(h = partthick, r = partthick / 2, center = true, $fn = fn); - } - } - translate([0, partthick, 0]) - difference() - { - rotate_extrude(convexity = 10, $fn = fn) - translate([vertexoffset - partthick * sqrt(3) / 2, 0, 0]) - { - if (round) - circle(r = partthick / 2, center = true, $fn = fn); - else - square(size = partthick, center = true); - } - for (side = [1, -1]) - rotate([0, 0, side * 30]) - translate([-side * vertexoffset, 0, 0]) - cube(vertexoffset * 2, center = true); - } - } - for(side = [1, -1]) - { - rotate([90, 0, side * 30]) - translate([0, 0, -rodsize * 7.5]) - rotate([0, 0, -90]) - teardrop(radius = rodsize/2, height = rodsize * 15, truncateMM = 1);//rod(rodsize * 15); - rotate([0, 0, side * 30]) - { - translate([-side * rodsize, vertexoffset, 0]) - rod(partthick * 2); - } - } - } -} -module with_foot_and_shelf(round) -{ - union() - { - basic_vertex(round); - translate([-partthick*2.3, 0.2*partthick, 0.5*(partthick+bearing_mount_centres)]) - rotate([0, 0, 60]) - { - difference() - { - translate([0.5*partthick,0,0]) - cube([partthick,partthick/3,2*partthick+bearing_mount_centres], center=true); - translate([0.5*partthick,0,0.5*partthick]) - hat_cube([screwsize,partthick,2*partthick], center=true); - //translate([-0.5*partthick,0,0.5*partthick]) - //hat_cube([screwsize,partthick,2*partthick], center=true); - } - translate([0.8*partthick,0,-0.5*partthick-bearing_mount_centres/2]) - { - difference() - { - cube([partthick,partthick/1.5,partthick], center=true); - translate([0, partthick/1.5, 0]) - rotate([0, 0, 10]) - cube([3*partthick,partthick/1.5,partthick], center=true); - translate([0, -partthick/1.5, 0]) - rotate([0, 0, -10]) - cube([3*partthick,partthick/1.5,partthick], center=true); - } - } - } - translate([partthick*2.2, 0, 0]) - rotate([0, 0, 60]) - cube([partthick,partthick/3,partthick], center=true); - translate([partthick*1.9, partthick*0.6, 0]) - rotate([0, 0, -60]) - cube([1.4*partthick,partthick/3,partthick], center=true); - } -} -module frame_vertex(round = false, foot = false, left = false) +module y_bar_clamp() { - color(c) - if(!foot) - basic_vertex(round); - else + difference() { - if(left) - with_foot_and_shelf(round); - else - mirror([0,0,1]) - with_foot_and_shelf(round); + cube([partthick*1.7,partthick,partthick], center=true); + translate([partthick*0.75, 0, 0]) + cube([partthick*1.5,0.2*partthick,partthick*2], center=true); + rod(rodsize*5); + translate([rodsize, 2*rodsize, 0]) + rotate([90, 0, 0]) + rotate([0, 0, -90]) + teardrop(radius = screwsize/2, height = rodsize * 5, truncateMM = 0.5); + translate([-rodsize, 2*rodsize, 0]) + rotate([90, 0, 0]) + rotate([0, 0, -90]) + teardrop(radius = screwsize/2, height = rodsize * 5, truncateMM = 0.5); } } -frame_vertex(round = false, foot = true, left=true); +y_bar_clamp(); + + Added: trunk/huxley/OpenSCAD-huxley/y_bar_clamp.scad =================================================================== --- trunk/huxley/OpenSCAD-huxley/y_bar_clamp.scad (rev 0) +++ trunk/huxley/OpenSCAD-huxley/y_bar_clamp.scad 2010-12-22 23:51:01 UTC (rev 3974) @@ -0,0 +1,29 @@ + + +include <parameters.scad>; +use <library.scad>; + + + +module y_bar_clamp() +{ + difference() + { + cube([partthick*1.7,partthick,partthick], center=true); + translate([partthick*0.75, 0, 0]) + cube([partthick*1.5,0.2*partthick,partthick*2], center=true); + rod(rodsize*5); + translate([rodsize, 2*rodsize, 0]) + rotate([90, 0, 0]) + rotate([0, 0, -90]) + teardrop(radius = screwsize/2, height = rodsize * 5, truncateMM = 0.5); + translate([-rodsize, 2*rodsize, 0]) + rotate([90, 0, 0]) + rotate([0, 0, -90]) + teardrop(radius = screwsize/2, height = rodsize * 5, truncateMM = 0.5); + } +} + +y_bar_clamp(); + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |