discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

I do not know why difference() does not work for me.

I
infocean
Thu, Mar 18, 2021 5:33 PM

As MichelatOZ pointed out, somehow my eye did not catch the”;” after the
closing brace of the resize.
Yes, the form is something like that you nophead provided, and difference()
is working as it should.  I made a little modification to the module, now it
looks like this:

// Module of the airdirector
module airdirector(){
translate([-2.3,0,0])
rotate([0,90,0])
rotate_extrude(convexity=10)
translate([aidelpsl/2-1.8,0,0])
rotate(45)
resize([aidelpsl/3,aidelpss/3])
difference(){
circle(r=(aidelpsl-aidelpss));
circle(r=(aidelpsl-aidelpss-10*aidthick));
}

}

Thanks, again,
Infocean

--
Sent from: http://forum.openscad.org/

As MichelatOZ pointed out, somehow my eye did not catch the”;” after the closing brace of the resize. Yes, the form is something like that you nophead provided, and difference() is working as it should. I made a little modification to the module, now it looks like this: // Module of the airdirector module airdirector(){ translate([-2.3,0,0]) rotate([0,90,0]) rotate_extrude(convexity=10) translate([aidelpsl/2-1.8,0,0]) rotate(45) resize([aidelpsl/3,aidelpss/3]) difference(){ circle(r=(aidelpsl-aidelpss)); circle(r=(aidelpsl-aidelpss-10*aidthick)); } } Thanks, again, Infocean -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Thu, Mar 18, 2021 11:41 PM

Also note that you need convexity= in render().

If you try this (to see inside) without it you will see why.

difference() {

union() {

// Draw the airdirectors

color("Teal",0.5) 

render(convexity=10)

    translate([pairdirector1,0,0])

    airdirector();

//color("Teal",0.5) 

render(convexity=10)

    translate([pairdirector2,0,0])

    mirror([1,0,0])

    airdirector(); 

}

cube(40);

}


From: infocean via Discuss [mailto:discuss@lists.openscad.org]
Sent: Fri, 19 Mar 2021 04:34
To: discuss@lists.openscad.org
Cc: infocean
Subject: [OpenSCAD] Re: I do not know why difference() does not work for me.

As MichelatOZ pointed out, somehow my eye did not catch the”;” after the closing brace of the resize.
Yes, the form is something like that you nophead provided, and difference() is working as it should.  I made a little modification to the module, now it looks like this:

// Module of the airdirector
module airdirector(){
translate([-2.3,0,0])
rotate([0,90,0])
rotate_extrude(convexity=10)
translate([aidelpsl/2-1.8,0,0])
rotate(45)
resize([aidelpsl/3,aidelpss/3])
difference(){
circle(r=(aidelpsl-aidelpss));
circle(r=(aidelpsl-aidelpss-10*aidthick));
}

}

Thanks, again,
Infocean


Sent from the OpenSCAD mailing http://forum.openscad.org/  list archive at Nabble.com.

--
This email has been checked for viruses by AVG.
https://www.avg.com

Also note that you need convexity= in render(). If you try this (to see inside) without it you will see why. difference() { union() { // Draw the airdirectors color("Teal",0.5) render(convexity=10) translate([pairdirector1,0,0]) airdirector(); //color("Teal",0.5) render(convexity=10) translate([pairdirector2,0,0]) mirror([1,0,0]) airdirector(); } cube(40); } _____ From: infocean via Discuss [mailto:discuss@lists.openscad.org] Sent: Fri, 19 Mar 2021 04:34 To: discuss@lists.openscad.org Cc: infocean Subject: [OpenSCAD] Re: I do not know why difference() does not work for me. As MichelatOZ pointed out, somehow my eye did not catch the”;” after the closing brace of the resize. Yes, the form is something like that you nophead provided, and difference() is working as it should. I made a little modification to the module, now it looks like this: // Module of the airdirector module airdirector(){ translate([-2.3,0,0]) rotate([0,90,0]) rotate_extrude(convexity=10) translate([aidelpsl/2-1.8,0,0]) rotate(45) resize([aidelpsl/3,aidelpss/3]) difference(){ circle(r=(aidelpsl-aidelpss)); circle(r=(aidelpsl-aidelpss-10*aidthick)); } } Thanks, again, Infocean _____ Sent from the OpenSCAD mailing <http://forum.openscad.org/> list archive at Nabble.com. -- This email has been checked for viruses by AVG. https://www.avg.com
DV
david vanhorn
Fri, Mar 19, 2021 9:31 AM

Suggestion:  use #cube so you'll see where it is.

On Thu, Mar 18, 2021 at 5:41 PM MichaelAtOz oz.at.michael@gmail.com wrote:

Also note that you need convexity= in render().

If you try this (to see inside) without it you will see why.

difference() {

union() {

// Draw the airdirectors

 color("Teal",0.5)

 render(convexity=10)

     translate([pairdirector1,0,0])

     airdirector();

 //color("Teal",0.5)

 render(convexity=10)

     translate([pairdirector2,0,0])

     mirror([1,0,0])

     airdirector();

}

cube(40);

}


From: infocean via Discuss [mailto:discuss@lists.openscad.org]
Sent: Fri, 19 Mar 2021 04:34
To: discuss@lists.openscad.org
Cc: infocean
Subject: [OpenSCAD] Re: I do not know why difference() does not work
for me.

As MichelatOZ pointed out, somehow my eye did not catch the”;” after the
closing brace of the resize.
Yes, the form is something like that you nophead provided, and
difference() is working as it should.  I made a little modification to the
module, now it looks like this:

// Module of the airdirector
module airdirector(){
translate([-2.3,0,0])
rotate([0,90,0])
rotate_extrude(convexity=10)
translate([aidelpsl/2-1.8,0,0])
rotate(45)
resize([aidelpsl/3,aidelpss/3])
difference(){
circle(r=(aidelpsl-aidelpss));
circle(r=(aidelpsl-aidelpss-10*aidthick));
}

}

Thanks, again,
Infocean

Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient Virus-free.
www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_5990485673363810638_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15

Suggestion: use #cube so you'll see where it is. On Thu, Mar 18, 2021 at 5:41 PM MichaelAtOz <oz.at.michael@gmail.com> wrote: > Also note that you need convexity= in render(). > > > > If you try this (to see inside) without it you will see why. > > > > difference() { > > union() { > > // Draw the airdirectors > > color("Teal",0.5) > > render(convexity=10) > > translate([pairdirector1,0,0]) > > airdirector(); > > //color("Teal",0.5) > > render(convexity=10) > > translate([pairdirector2,0,0]) > > mirror([1,0,0]) > > airdirector(); > > } > > cube(40); > > } > > > > > ------------------------------ > > *From:* infocean via Discuss [mailto:discuss@lists.openscad.org] > *Sent:* Fri, 19 Mar 2021 04:34 > *To:* discuss@lists.openscad.org > *Cc:* infocean > *Subject:* [OpenSCAD] Re: I do not know why difference() does not work > for me. > > > > As MichelatOZ pointed out, somehow my eye did not catch the”;” after the > closing brace of the resize. > Yes, the form is something like that you nophead provided, and > difference() is working as it should. I made a little modification to the > module, now it looks like this: > > // Module of the airdirector > module airdirector(){ > translate([-2.3,0,0]) > rotate([0,90,0]) > rotate_extrude(convexity=10) > translate([aidelpsl/2-1.8,0,0]) > rotate(45) > resize([aidelpsl/3,aidelpss/3]) > difference(){ > circle(r=(aidelpsl-aidelpss)); > circle(r=(aidelpsl-aidelpss-10*aidthick)); > } > > } > > Thanks, again, > Infocean > ------------------------------ > > Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> > at Nabble.com. > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. > www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_5990485673363810638_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > -- K1FZY (WA4TPW) SK 9/29/37-4/13/15