discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] combine a union child and a difference child in one object.

DE
David Eccles (gringer)
Wed, Dec 2, 2015 6:42 PM

From: "Leef_me" Leef_me@cox.net

A single module -- yes.

but the first child of the difference should not be specified in the child.

Er, did you mean "not be specified in the module?


module thingy(){
difference()
{
children();
#cylinder(d=1.5, h=12, center=true); // part A
}

cylinder(d=1, h=15, center=true); // part B

}

translate([0,0,0]) thingy() cube([5,5,5], center=true);
translate([20,0,0]) thingy() sphere(r=2.5);
translate([-20,0,0]) thingy() sphere(r=2.5, $fn=6);

From: "Leef_me" <Leef_me@cox.net> > A single module -- yes. > > but the first child of the difference should not be specified in the child. Er, did you mean "not be specified in the *module*? --- module thingy(){ difference() { children(); #cylinder(d=1.5, h=12, center=true); // part A } cylinder(d=1, h=15, center=true); // part B } translate([0,0,0]) thingy() cube([5,5,5], center=true); translate([20,0,0]) thingy() sphere(r=2.5); translate([-20,0,0]) thingy() sphere(r=2.5, $fn=6);
L
Leef_me
Wed, Dec 2, 2015 7:58 PM

but the first child of the difference should not be specified in the child.

Er, did you mean "not be specified in the module?

Yes, the module.

--
View this message in context: http://forum.openscad.org/combine-a-union-child-and-a-difference-child-in-one-object-tp14834p14917.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

> but the first child of the difference should not be specified in the child. >>Er, did you mean "not be specified in the *module*? Yes, the module. -- View this message in context: http://forum.openscad.org/combine-a-union-child-and-a-difference-child-in-one-object-tp14834p14917.html Sent from the OpenSCAD mailing list archive at Nabble.com.