[OpenSCAD] Functional OpenSCAD, working with vertex data

Hans L thehans at gmail.com
Tue Jan 30 15:12:32 EST 2018


Its basically just easier for CGAL to handle a bunch of smaller unions
than one big one.

On Tue, Jan 30, 2018 at 2:07 PM, Carsten Arnholm <arnholm at arnholm.org> wrote:
> On 30. jan. 2018 20:35, Antonio Bueno wrote:
>>
>> Any insight in why the first hull() (the one with explicit union()) is
>> faster (16s*) than the second one (26s)?
>
>
> Implicit or explicit union takes time. You are doing both in this case.
>
> Why not simplify. Shorter, easier code. And faster.
>
> size=30;
> radius=1;
> $fn=60;
> hull() {
>     translate([-size/2, -size/2, -size/2]) sphere(radius);
>     translate([+size/2, -size/2, -size/2]) sphere(radius);
>     translate([+size/2, +size/2, -size/2]) sphere(radius);
>     translate([-size/2, +size/2, -size/2]) sphere(radius);
>
>     translate([-size/2, -size/2, +size/2]) sphere(radius);
>     translate([+size/2, -size/2, +size/2]) sphere(radius);
>     translate([+size/2, +size/2, +size/2]) sphere(radius);
>     translate([-size/2, +size/2, +size/2]) sphere(radius);
>
> }
>
> Carsten Arnholm
>
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org




More information about the Discuss mailing list