[OpenSCAD] Object appears in F6 render but not F5 preview

nop head nop.head at gmail.com
Wed Apr 11 08:03:31 EDT 2018


Previews fine for me with OpenSCAD version 2017.11.12 (git 7cb1e93) on Win7
64.

On 11 April 2018 at 12:39, Jamie Bainbridge <jamie.bainbridge at gmail.com>
wrote:

> Hello,
>
> I have the following code which appears fine in F6 render (and makes a
> manifold mesh afaics) but does not appear in the F5 preview.
>
> I tried adding convexity=10 to each union/difference/hull which often
> works for me, but made no difference here.
>
> I realise I am abusing hull() to avoid making proper polyhedrons out
> of laziness, but this code theoretically still should work shouldn't
> it?
>
> Jamie
>
> $fn = 180;
> e = 0.001;
> f = 0.25;
>
> module dual_bushing_holder() {
>     union() {
>         // body
>         difference() {
>             cylinder(d=15,h=40);
>             translate([0,0,-1]) #cylinder(d=14,h=42);
>         }
>
>         // left middle tab
>         difference() {
>             hull() {
>                 translate([-14.5,-1,18.25]) cube([e,2,3.5]);
>                 translate([-7.5+f,-1,8.5]) cube([e,2,23]);
>             }
>             // screw hole
>             translate([-11.25,-2,20]) rotate([-90,0,0])
> cylinder(d=3.3,h=4);
>         }
>
>         // right upper tab
>         difference() {
>             hull() {
>                 translate([7.5-f,-1,25]) cube([e,2,15]);
>                 translate([14.5,-1,32.25]) cube([e,2,7.75]);
>
>             }
>             // screw hole
>             translate([11.25,-2,35.25]) rotate([-90,0,0])
> cylinder(d=3.3,h=4);
>         }
>
>         // right lower tab
>         difference() {
>             hull() {
>                 translate([7.5-f,-1,0]) cube([e,2,15]);
>                 translate([14.5,-1,0]) cube([e,2,7.75]);
>
>             }
>             // screw hole
>             translate([11.25,-2,4.75]) rotate([-90,0,0])
> cylinder(d=3.3,h=4);
>         }
>     }
> }
>
> dual_bushing_holder();
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180411/e727c98c/attachment.html>


More information about the Discuss mailing list