[OpenSCAD] Evaluating imported STL's

Ronaldo rcmpersiano at gmail.com
Wed Jun 15 21:44:28 EDT 2016


Lucas,

Here you have a broader set of tests with void sets and surprising results:

> module void1() {};
> module void2() difference() { sphere(1); sphere(2); }
> module void3() intersection() { sphere(1); translate([0,0,3]) sphere(1); }
> module void4() union() { void2(); void1(); }
> module void5() union() { void1(); void3(); }
> module void6() union() { void2(); void3(); }
> module void7() hull(){ void1(); void2(); void3(); void4(); void5();
> void6(); }
> 
> module Int1() intersection(){ children(); cube(1); }
> module Int2() intersection(){ cube(1); children(); }
> 
> module Diff() difference()  { children(); cube(1); }
> 
> module Mink1() minkowski()  { children(); cube(1); }
> module Mink2() minkowski()  { cube(1); children(); }
> 
> void1(); void2(); void3(); void4(); void5(); void6(); void7();
> 
> translate([ 2,0,0]) Int1() void1(); // non-void
> translate([ 4,0,0]) Int2() void1(); // non-void
> translate([ 6,0,0]) Int1() void2(); 
> translate([ 8,0,0]) Int2() void2();
> translate([10,0,0]) Int1() void3(); // non-void
> translate([12,0,0]) Int2() void3(); // non-void
> translate([14,0,0]) Int1() void4(); 
> translate([16,0,0]) Int2() void4(); 
> translate([18,0,0]) Int1() void5(); // non-void
> translate([20,0,0]) Int2() void5(); // non-void
> translate([22,0,0]) Int1() void6(); 
> translate([24,0,0]) Int2() void6(); 
> translate([26,0,0]) Int1() void7();  // non-void
> 
> translate([0, 2,0]) Mink1() void1(); // all non-void
> translate([0, 4,0]) Mink1() void2();
> translate([0, 6,0]) Mink1() void3();
> translate([0, 8,0]) Mink1() void4();
> translate([0,10,0]) Mink1() void5();
> translate([0,12,0]) Mink1() void6();
> translate([0,14,0]) Mink2() void1();
> translate([0,16,0]) Mink2() void2();
> translate([0,18,0]) Mink2() void3();
> translate([0,20,0]) Mink2() void4();
> translate([0,22,0]) Mink2() void5();
> translate([0,24,0]) Mink1() void6();
> translate([0,26,0]) Mink1() void7();
> 
> translate([0, -2,0]) Diff() void1(); // non-void
> translate([0, -4,0]) Diff() void2();
> translate([0, -6,0]) Diff() void3(); // non-void
> translate([0, -8,0]) Diff() void4(); 
> translate([0,-10,0]) Diff() void5(); // non-void
> translate([0,-12,0]) Diff() void6(); 
> translate([0,-14,0]) Diff() void7(); // non-void





--
View this message in context: http://forum.openscad.org/Evaluating-imported-STL-s-tp17682p17707.html
Sent from the OpenSCAD mailing list archive at Nabble.com.




More information about the Discuss mailing list