[OpenSCAD] Minkowski difference shows up with F5 but not F6

kerog kerog777 at gmail.com
Sun Apr 15 20:53:29 EDT 2018


The following code quick-renders fine (F5) but when I try a full render (F6)
nothing shows up  Any thoughts on why?  Using: 2018.03.17 (git 3e7fbfff) 

trayHeight = 1.4*25.4;
maxCutHeight = 0.4*25.4;

baseThickness = 2;
wallThickness = 2;
cornerRad = 2;
text1 = "1.4\"";
text2 = "Subtract 0.0\"";
text3 = "For 0 to 0.4\"";
textThickness = .6;
textHeight = 4;

riserHeight = trayHeight-baseThickness;
baseLength = 2*riserHeight;

$fn=10;

difference()
{
    minkowski()
    {
        union()
        {
            linear_extrude(baseThickness)
           
polygon([[0,0],[baseLength,0],[baseLength/2,sqrt(3)/2*baseLength]],[[0,1,2]],2);
        
            rotate([0,0,30])
            translate([0,wallThickness/2,baseThickness])
            rotate([90,0,0])
            linear_extrude(wallThickness)
           
polygon([[0,0],[baseLength/sqrt(3),0],[baseLength/sqrt(3),riserHeight]],[[0,1,2]],2);
        
            translate([baseLength,0,baseThickness])
            rotate([0,0,150])
            translate([0,wallThickness/2,0])
            rotate([90,0,0])
            linear_extrude(wallThickness)
           
polygon([[0,0],[baseLength/sqrt(3),0],[baseLength/sqrt(3),riserHeight]],[[0,1,2]],2);
        
            translate([baseLength/2,sqrt(3)/2*baseLength,baseThickness])
            rotate([0,0,-90])
            translate([0,wallThickness/2,0])
            rotate([90,0,0])
            linear_extrude(wallThickness)
           
polygon([[0,0],[baseLength/sqrt(3),0],[baseLength/sqrt(3),riserHeight]],[[0,1,2]],2);
        
        }
        sphere(r=1);
    }
    translate([0,0,riserHeight])
    cube([baseLength,baseLength,5]);
}



--
Sent from: http://forum.openscad.org/



More information about the Discuss mailing list