# Minkowski with more than child 2 objects

4 messages
Open this post in threaded view
|

## Minkowski with more than child 2 objects

 In the OpenSCAD documentation for minkowski(), examples are given for 2 child objects, ref: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowskiBut what if you supply 3 or more, for example: \$fn=50; minkowski() {      cube([10,10,10]);      cylinder(r=2,h=10);      sphere(r=4); } This seems to be accepted, but it is not obvious what happens in this case. It looks like the same as below? \$fn=50; minkowski() {      minkowski() {          cube([10,10,10]);          cylinder(r=2,h=10);      }      sphere(r=4); } In other words, when more than 2 child objects are supplied the child objects are subject to a series of implicit minkowski operations until the list is exhausted. Is this a correct interpretation? Carsten Arnholm _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: Minkowski with more than child 2 objects

 I don't think the order matters does it? Basically the result is the set with all combinations of points added together.On 18 March 2018 at 11:41, Carsten Arnholm wrote:In the OpenSCAD documentation for minkowski(), examples are given for 2 child objects, ref: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowski But what if you supply 3 or more, for example: \$fn=50; minkowski() {     cube([10,10,10]);     cylinder(r=2,h=10);     sphere(r=4); } This seems to be accepted, but it is not obvious what happens in this case. It looks like the same as below? \$fn=50; minkowski() {     minkowski() {         cube([10,10,10]);         cylinder(r=2,h=10);     }     sphere(r=4); } In other words, when more than 2 child objects are supplied the child objects are subject to a series of implicit minkowski operations until the list is exhausted. Is this a correct interpretation? Carsten Arnholm _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org