discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

does difference not work with union()

KE
Karl Exler
Sun, Aug 24, 2025 4:40 PM

Dear all

I have here a very simple peace of code and I am wondering why it does
not work. My aim is to make a negative for my wife so that she easily
can use the shape for painting flowers.

R=35;

difference()
{
circle(d=120);
flower();
};

module flower()
union()
{
for (f=[0:360/5:360])
    rotate(f)
    translate([0,33,0])
    scale([1.2,1.3,0])  circle(d=R);
}

any help is welcome
yours Karl

Dear all I have here a very simple peace of code and I am wondering why it does not work. My aim is to make a negative for my wife so that she easily can use the shape for painting flowers. R=35; difference() { circle(d=120); flower(); }; module flower() union() { for (f=[0:360/5:360])     rotate(f)     translate([0,33,0])     scale([1.2,1.3,0])  circle(d=R); } any help is welcome yours Karl
AM
Adrian Mariano
Sun, Aug 24, 2025 4:46 PM

You made flower() have zero thickness because you did scale([1.2,1.3,0]).
Note the zero in the z position.  You need either scale([1.2,1.3]) or
scale([1.2,1.3,1]).

On Sun, Aug 24, 2025 at 12:41 PM Karl Exler via Discuss <
discuss@lists.openscad.org> wrote:

Dear all

I have here a very simple peace of code and I am wondering why it does
not work. My aim is to make a negative for my wife so that she easily
can use the shape for painting flowers.

R=35;

difference()
{
circle(d=120);
flower();
};

module flower()
union()
{
for (f=[0:360/5:360])
rotate(f)
translate([0,33,0])
scale([1.2,1.3,0])  circle(d=R);
}

any help is welcome
yours Karl


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

You made flower() have zero thickness because you did scale([1.2,1.3,0]). Note the zero in the z position. You need either scale([1.2,1.3]) or scale([1.2,1.3,1]). On Sun, Aug 24, 2025 at 12:41 PM Karl Exler via Discuss < discuss@lists.openscad.org> wrote: > Dear all > > I have here a very simple peace of code and I am wondering why it does > not work. My aim is to make a negative for my wife so that she easily > can use the shape for painting flowers. > > R=35; > > > difference() > { > circle(d=120); > flower(); > }; > > module flower() > union() > { > for (f=[0:360/5:360]) > rotate(f) > translate([0,33,0]) > scale([1.2,1.3,0]) circle(d=R); > } > > > any help is welcome > yours Karl > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JB
Jon Bondy
Sun, Aug 24, 2025 5:11 PM

Would "rotate([0, 0, f])" work better?

On 8/24/2025 12:40 PM, Karl Exler via Discuss wrote:

Dear all

I have here a very simple peace of code and I am wondering why it does
not work. My aim is to make a negative for my wife so that she easily
can use the shape for painting flowers.

R=35;

difference()
{
circle(d=120);
flower();
};

module flower()
union()
{
for (f=[0:360/5:360])
    rotate(f)
    translate([0,33,0])
    scale([1.2,1.3,0])  circle(d=R);
}

any help is welcome
yours Karl


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Would "rotate([0, 0, f])" work better? On 8/24/2025 12:40 PM, Karl Exler via Discuss wrote: > Dear all > > I have here a very simple peace of code and I am wondering why it does > not work. My aim is to make a negative for my wife so that she easily > can use the shape for painting flowers. > > R=35; > > > difference() > { > circle(d=120); > flower(); > }; > > module flower() > union() > { > for (f=[0:360/5:360]) >     rotate(f) >     translate([0,33,0]) >     scale([1.2,1.3,0])  circle(d=R); > } > > > any help is welcome > yours Karl > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
NH
nop head
Sun, Aug 24, 2025 5:20 PM

It would be exactly the same, a rotation around the Z axis.

On Sun, 24 Aug 2025 at 18:12, Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

Would "rotate([0, 0, f])" work better?

On 8/24/2025 12:40 PM, Karl Exler via Discuss wrote:

Dear all

I have here a very simple peace of code and I am wondering why it does
not work. My aim is to make a negative for my wife so that she easily
can use the shape for painting flowers.

R=35;

difference()
{
circle(d=120);
flower();
};

module flower()
union()
{
for (f=[0:360/5:360])
rotate(f)
translate([0,33,0])
scale([1.2,1.3,0])  circle(d=R);
}

any help is welcome
yours Karl


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

It would be exactly the same, a rotation around the Z axis. On Sun, 24 Aug 2025 at 18:12, Jon Bondy via Discuss < discuss@lists.openscad.org> wrote: > Would "rotate([0, 0, f])" work better? > > > On 8/24/2025 12:40 PM, Karl Exler via Discuss wrote: > > Dear all > > > > I have here a very simple peace of code and I am wondering why it does > > not work. My aim is to make a negative for my wife so that she easily > > can use the shape for painting flowers. > > > > R=35; > > > > > > difference() > > { > > circle(d=120); > > flower(); > > }; > > > > module flower() > > union() > > { > > for (f=[0:360/5:360]) > > rotate(f) > > translate([0,33,0]) > > scale([1.2,1.3,0]) circle(d=R); > > } > > > > > > any help is welcome > > yours Karl > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > -- > This email has been checked for viruses by AVG antivirus software. > www.avg.com > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
KE
Karl Exler
Sun, Aug 24, 2025 6:05 PM

thank you very much !

KARL

Am 24.08.25 um 19:20 schrieb nop head via Discuss:

It would be exactly the same, a rotation around the Z axis.

On Sun, 24 Aug 2025 at 18:12, Jon Bondy via Discuss
discuss@lists.openscad.org wrote:

 Would "rotate([0, 0, f])" work better?


 On 8/24/2025 12:40 PM, Karl Exler via Discuss wrote:

Dear all

I have here a very simple peace of code and I am wondering why

 it does

not work. My aim is to make a negative for my wife so that she

 easily

can use the shape for painting flowers.

R=35;

difference()
{
circle(d=120);
flower();
};

module flower()
union()
{
for (f=[0:360/5:360])
    rotate(f)
    translate([0,33,0])
    scale([1.2,1.3,0])  circle(d=R);
}

any help is welcome
yours Karl


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

 -- 
 This email has been checked for viruses by AVG antivirus software.
 www.avg.com <http://www.avg.com>
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

thank you very much ! KARL Am 24.08.25 um 19:20 schrieb nop head via Discuss: > It would be exactly the same, a rotation around the Z axis. > > On Sun, 24 Aug 2025 at 18:12, Jon Bondy via Discuss > <discuss@lists.openscad.org> wrote: > > Would "rotate([0, 0, f])" work better? > > > On 8/24/2025 12:40 PM, Karl Exler via Discuss wrote: > > Dear all > > > > I have here a very simple peace of code and I am wondering why > it does > > not work. My aim is to make a negative for my wife so that she > easily > > can use the shape for painting flowers. > > > > R=35; > > > > > > difference() > > { > > circle(d=120); > > flower(); > > }; > > > > module flower() > > union() > > { > > for (f=[0:360/5:360]) > >     rotate(f) > >     translate([0,33,0]) > >     scale([1.2,1.3,0])  circle(d=R); > > } > > > > > > any help is welcome > > yours Karl > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > -- > This email has been checked for viruses by AVG antivirus software. > www.avg.com <http://www.avg.com> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org