Odd rendering with hull and % modifier

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Odd rendering with hull and % modifier

QuackingPlums
I have just downloaded the 2014.11.05 snapshot (to play with the list comprehensions - they sound perfect for some of my new projects!) but the first thing I saw was some odd behaviour with my use of the hull() function and # modifier.

It's such a simple thing I'm sure it has been mentioned already but I can't find it so I just thought I'd check.

I am using something akin to the following code to help me plate up objects so that they stay within the printable area of my printer:

%hull()
{
        translate([87, 87, -3])
                cylinder(h = 3, r = 9);
        translate([-87, 87, -3])
                cylinder(h = 3, r = 9);
        translate([-87, -87, -3])
                cylinder(h = 3, r = 9);
        translate([87, -87, -3])
                cylinder(h = 3, r = 9);
}

// example object
cube(10);

In the last stable release this has worked fine, but the glass plate now shows some odd lines going through it. Playing with the $fn, $fa, $fs special variables makes the lines appear in different places so it appears that it is somehow related to the vertices on my corner cylinders. Is this intentional? Has it been raised already?



Reply | Threaded
Open this post in threaded view
|

Re: Odd rendering with hull and % modifier

kintel
Administrator
On Nov 9, 2014, at 14:26 PM, QuackingPlums <[hidden email]> wrote:
>
> In the last stable release this has worked fine, but the glass plate now
> shows some odd lines going through it.

This is just a rendering artifact. Rendering transparent objects in OpenGL requires a bit of care and we don’t care too much. % tagged objects are only for illustration so this won’t have any effect on your object.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566