Close



Results 1 to 10 of 29

Threaded View

  1. #7
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Here you go. Put this into OpenScad Version 2015.03-1. I left one line of the debug turned on so you can see how this is done. You can turn the debug off by removing the '#' sign. (however, that should not affect the final .STL file that you export.)

    Do a Design/Render And then do a File/Export/.stl You will get this:

    fibo_fill.jpg

    Code:
    do_fill();
    
    s = .015;
    s2= .061;
    s3= .050;
    s4= .090;
    s5= .090;
    s6= .1;
    
    module do_fill() {
        translate([-7,-14,0]) import("fibofidget.stl");
    
        for(i=[-27:1:250])  
            rotate([0,0,i])    translate([11.1,0,0])  cube( [4.8+i*s,1,4]);    
        
    #    for(i=[90:1:250])  
            rotate([0,0,i])    translate([11.1,0,0])  cube( [2+s2*i,1,4]);    
        
        for(i=[120:1:250])  
            rotate([0,0,i])    translate([11.1,0,0])  cube( [4.5+s3*i,1,4]);    
        
        for(i=[0:1:120])  
            rotate([0,0,i+135])    translate([22.1,0,0])  cube( [1.0+s4*i,1,4]);    
        
        for(i=[0:1:90])  
            rotate([0,0,i+150])    translate([24.5,0,0])  cube( [1.0+s5*i,1,4]);    
        
        for(i=[0:1:60])  
            rotate([0,0,i+160])    translate([27.0,0,0])  cube( [.5+s6*i,1,4]);    
        
        translate([-5,-23,0]) scale([.25,1,1]) cylinder(r=8, h=4, $fn=55);
        translate([-8,-30,0]) cylinder(r=3, h=4, $fn=55);
    }
    Last edited by Roxy; 11-09-2016 at 08:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •