A single module -- yes.
but the first child of the difference should not be specified in the child.
From: "David Eccles (gringer)" bioinformatics@gringene.org
Sent: Wednesday, December 02, 2015 1:15 AM
To: discuss@lists.openscad.org
Subject: Re: [OpenSCAD] combine a union child and a difference child in
oneobject.
Did you just want to combine them into a single module so that only one
command was needed elsewhere?
$fn=16;
module thingy(){
difference()
{
cube([5,5,5], center=true);
#cylinder(d=1.5, h=12, center=true); // part A
}
cylinder(d=1, h=15, center=true); // part B
}
for(r = [0:60:360]){
rotate([0,0,r]) translate([20,0,0]) thingy();
}
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
A single module -- yes.
but the first child of the difference should not be specified in the child.
--------------------------------------------------
From: "David Eccles (gringer)" <bioinformatics@gringene.org>
Sent: Wednesday, December 02, 2015 1:15 AM
To: <discuss@lists.openscad.org>
Subject: Re: [OpenSCAD] combine a union child and a difference child in
oneobject.
> Did you just want to combine them into a single module so that only one
> command was needed elsewhere?
>
> ---
>
> $fn=16;
>
> module thingy(){
> difference()
> {
> cube([5,5,5], center=true);
> #cylinder(d=1.5, h=12, center=true); // part A
> }
>
> cylinder(d=1, h=15, center=true); // part B
> }
>
> for(r = [0:60:360]){
> rotate([0,0,r]) translate([20,0,0]) thingy();
> }
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss@lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org