CJ
Chris Johnson
Sun, Feb 20, 2022 12:00 PM
Send Discuss mailing list submissions to
discuss@lists.openscad.org
To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
discuss-request@lists.openscad.org
You can reach the person managing the list at
discuss-owner@lists.openscad.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Discuss digest..."
Today's Topics:
1. Re: Problem with "Difference" and F5 ... (from Empathy) (Dave)
2. Re: Seems OK but errors re unnamed arguments (David Phillip Oster)
3. Re: Determining the dimensions of an array (Adrian Mariano)
4. Re: Problem with "Difference" and F5 ... (from Empathy) (Terry)
5. Re: Determining the dimensions of an array (Bob Ewart)
6. Re: Seems OK but errors re unnamed arguments (Terry)
7. Re: Determining the dimensions of an array (Adrian Mariano)
8. Re: Seems OK but errors re unnamed arguments (Douglas Miller)
9. Re: Problem with "Difference" and F5 ... (from Empathy) (Dave)
- Re: Seems OK but errors re unnamed arguments (Rogier Wolff)
- Re: Problem with "Difference" and F5 ... (from Empathy)
(Raymond West)
Message: 1
Date: Sat, 19 Feb 2022 17:39:50 +0000
From: Dave softfoot@hotmail.com
Subject: [OpenSCAD] Re: Problem with "Difference" and F5 ... (from
Empathy)
To: OpenSCAD general discussion discuss@lists.openscad.org
Message-ID: <AM0PR07MB473879C1C9AA7C24A76693D3D3389@AM0PR07MB4738.eur
prd07.prod.outlook.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
I didn't send it to the "Empathy" site (whatever that is).
Dave
On 19/02/2022 16:55, Terry wrote:
Dave,
I saw your post on the Empathy site. Not sure you realise that's rarely
by those on the Mailing List, so I'll copy its content in this post.
I'm no expert but FWIW I tried your file with the free repair tool at
https://www.formware.co/onlinestlrepair
and got a rather unhelpful message that won't please you:
"Sorry, this file was not fixable: Error reading your file."
====================
Problem with "Difference" and F5 ...
Hi, I am running Openscad v2021.01 and am having problems with the
script.
$fn=32;
difference()
{
union(){
import("base_slide_heavy_
isn't subtracted :-
The "imported" .STL file is attached.
This is only a problem for the preview, the generated STL is fine.
What am I doing wrong ??
Regards,
Dave
Terry
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Message: 2
Date: Sat, 19 Feb 2022 12:51:26 -0500
From: David Phillip Oster davidphilliposter@gmail.com
Subject: [OpenSCAD] Re: Seems OK but errors re unnamed arguments
To: OpenSCAD general discussion discuss@lists.openscad.org
Message-ID:
<CAJQ4LcPK5cD=Q=
O7Kjvw86yzGab12_qrwxLHLmNQ8X+1LxOUOg@mail.gmail.com>
Content-Type: multipart/alternative;
boundary="0000000000007f870b05d862a7c0"
the difference needs a translate down so you don't have colliding planes:
// Remove smaller diam, but higher, protruding at both ends
translate([0,0,-0.01])cylinder(h=h+.02, d1=d1-2t, d2=d2-2t, $fn);
On Sat, Feb 19, 2022 at 12:17 PM Terry terrypingm@gmail.com wrote:
Thanks both, appreciate the fast responses.
Sanjeev: Works fine and no errors!
Dave: No errors, but it did not give me the same result. Probably my
mistake.
Here's my revised code which I thought used your corrections?
// Creates a hollow partial cone
// Height = h
// Bottom diam = d1
// Top diam = d2
// center = true/false or 1/0; almost always use true
// $fn = typically 24 for control knob
// Thickness = t (same throughout)
module hollowCyl_Full(h, d1, d2, center, $fn, t) {
difference() {
// Larger diam, from which a difference is needed
cylinder(h=h, d1=d1, d2=d2, $fn);
// Remove smaller diam, but higher, protruding at both ends
cylinder(h=h+.01, d1=d1-2t, d2=d2-2t, $fn);
}
}
// EXAMPLE
hollowCyl_Full(9, 36, 28, true, 24, 1);
====================
On Sat, 19 Feb 2022 22:01:27 +0530, you wrote:
I have made few changes and it works now in my system
// Creates a hollow partial cone
// Height = h
// Bottom diam = d1
// Top diam = d2
// center = true/false or 1/0; almost always use true
// $fn = typically 24 for control knob
// Thickness = t (same throughout)
module hollowCyl_Full(h, d1, d2, center, fn, t) {
difference() {
// Larger diam, from which a difference is needed
cylinder(h, d1, d2, center=center, $fn=fn); // ERROR?
<-----------------------------
// Remove smaller diam, but higher, protruding at both ends
cylinder(h+.01, d1-2t, d2-2t, center=center, $fn=fn); // ERROR?
<-----------------
}
}
// EXAMPLE
hollowCyl_Full(9, 36, 28, true, 24, 1);
On Sat, 19 Feb 2022 at 21:46, Terry terrypingm@gmail.com wrote:
As recommended I'm using modules as much as possible. I'd welcome any
general
critiques of this one (syntax, method, formatting, anything). But in
particular
why is it that my code seems to work OK, despite the two console
"Too
many unnamed arguments... What is wrong with those please?
// Creates a hollow partial cone
// Height = h
// Bottom diam = d1
// Top diam = d2
// center = true/false or 1/0; almost always use true
// $fn = typically 24 for control knob
// Thickness = t (same throughout)
module hollowCyl_Full(h, d1, d2, center, $fn, t) {
difference() {
// Larger diam, from which a difference is needed
cylinder(h, d1, d2, true, $fn); // ERROR?
<-----------------------------
// Remove smaller diam, but higher, protruding at both ends
cylinder(h+.01, d1-2t, d2-2t, true, $fn); // ERROR?
<-----------------
}
}
// EXAMPLE
hollowCyl_Full(9, 36, 28, true, 24, 1);
https://www.dropbox.com/s/jmfgtbbl48xrzc0/HollowConeError.jpg?raw=1
Terry
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On Sat, 19 Feb 2022 at 21:11, <discuss-request@lists.openscad.org> wrote:
> Send Discuss mailing list submissions to
> discuss@lists.openscad.org
>
> To subscribe or unsubscribe via email, send a message with subject or
> body 'help' to
> discuss-request@lists.openscad.org
>
> You can reach the person managing the list at
> discuss-owner@lists.openscad.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Discuss digest..."
>
> Today's Topics:
>
> 1. Re: Problem with "Difference" and F5 ... (from Empathy) (Dave)
> 2. Re: Seems OK but errors re unnamed arguments (David Phillip Oster)
> 3. Re: Determining the dimensions of an array (Adrian Mariano)
> 4. Re: Problem with "Difference" and F5 ... (from Empathy) (Terry)
> 5. Re: Determining the dimensions of an array (Bob Ewart)
> 6. Re: Seems OK but errors re unnamed arguments (Terry)
> 7. Re: Determining the dimensions of an array (Adrian Mariano)
> 8. Re: Seems OK but errors re unnamed arguments (Douglas Miller)
> 9. Re: Problem with "Difference" and F5 ... (from Empathy) (Dave)
> 10. Re: Seems OK but errors re unnamed arguments (Rogier Wolff)
> 11. Re: Problem with "Difference" and F5 ... (from Empathy)
> (Raymond West)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 19 Feb 2022 17:39:50 +0000
> From: Dave <softfoot@hotmail.com>
> Subject: [OpenSCAD] Re: Problem with "Difference" and F5 ... (from
> Empathy)
> To: OpenSCAD general discussion <discuss@lists.openscad.org>
> Message-ID: <AM0PR07MB473879C1C9AA7C24A76693D3D3389@AM0PR07MB4738.eur
> prd07.prod.outlook.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
>
> I didn't send it to the "Empathy" site (whatever that is).
>
> Dave
>
>
> On 19/02/2022 16:55, Terry wrote:
> > Dave,
> >
> > I saw your post on the Empathy site. Not sure you realise that's rarely
> viewed
> > by those on the Mailing List, so I'll copy its content in this post.
> >
> >
> > I'm no expert but FWIW I tried your file with the free repair tool at
> > https://www.formware.co/onlinestlrepair
> > and got a rather unhelpful message that won't please you:
> > "Sorry, this file was not fixable: Error reading your file."
> >
> > ====================
> > Problem with "Difference" and F5 ...
> > ------------------------------------
> > Hi, I am running Openscad v2021.01 and am having problems with the
> following
> > script.
> >
> > $fn=32;
> > difference()
> > {
> > union(){
> > import("base_slide_heavy_
> > isn't subtracted :-
> >
> > The "imported" .STL file is attached.
> >
> > This is only a problem for the preview, the generated STL is fine.
> >
> > What am I doing wrong ??
> >
> > Regards,
> > Dave
> > ====================
> >
> > Terry
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>
> ------------------------------
>
> Message: 2
> Date: Sat, 19 Feb 2022 12:51:26 -0500
> From: David Phillip Oster <davidphilliposter@gmail.com>
> Subject: [OpenSCAD] Re: Seems OK but errors re unnamed arguments
> To: OpenSCAD general discussion <discuss@lists.openscad.org>
> Message-ID:
> <CAJQ4LcPK5cD=Q=
> O7Kjvw86yzGab12_qrwxLHLmNQ8X+1LxOUOg@mail.gmail.com>
> Content-Type: multipart/alternative;
> boundary="0000000000007f870b05d862a7c0"
>
> the difference needs a translate down so you don't have colliding planes:
>
> // Remove smaller diam, but higher, protruding at both ends
> translate([0,0,-0.01])cylinder(h=h+.02, d1=d1-2*t, d2=d2-2*t, $fn);
>
> On Sat, Feb 19, 2022 at 12:17 PM Terry <terrypingm@gmail.com> wrote:
>
> > Thanks both, appreciate the fast responses.
> >
> > Sanjeev: Works fine and no errors!
> >
> > Dave: No errors, but it did not give me the same result. Probably my
> > mistake.
> > Here's my revised code which I thought used your corrections?
> >
> > // Creates a hollow partial cone
> >
> > // Height = h
> > // Bottom diam = d1
> > // Top diam = d2
> > // center = true/false or 1/0; almost always use true
> > // $fn = typically 24 for control knob
> > // Thickness = t (same throughout)
> >
> > module hollowCyl_Full(h, d1, d2, center, $fn, t) {
> >
> > difference() {
> > // Larger diam, from which a difference is needed
> > cylinder(h=h, d1=d1, d2=d2, $fn);
> >
> > // Remove smaller diam, but higher, protruding at both ends
> > cylinder(h=h+.01, d1=d1-2*t, d2=d2-2*t, $fn);
> > }
> > }
> >
> > // EXAMPLE
> > hollowCyl_Full(9, 36, 28, true, 24, 1);
> >
> >
> > ====================
> >
> >
> > On Sat, 19 Feb 2022 22:01:27 +0530, you wrote:
> >
> > >I have made few changes and it works now in my system
> > >
> > >// Creates a hollow partial cone
> > >
> > >// Height = h
> > >// Bottom diam = d1
> > >// Top diam = d2
> > >// center = true/false or 1/0; almost always use true
> > >// $fn = typically 24 for control knob
> > >// Thickness = t (same throughout)
> > >
> > >module hollowCyl_Full(h, d1, d2, center, fn, t) {
> > >
> > >difference() {
> > >// Larger diam, from which a difference is needed
> > > cylinder(h, d1, d2, center=center, $fn=fn); // ERROR?
> > ><-----------------------------
> > >
> > >// Remove smaller diam, but higher, protruding at both ends
> > > cylinder(h+.01, d1-2*t, d2-2*t, center=center, $fn=fn); // ERROR?
> > ><-----------------
> > > }
> > >}
> > >
> > >// EXAMPLE
> > >hollowCyl_Full(9, 36, 28, true, 24, 1);
> > >
> > >On Sat, 19 Feb 2022 at 21:46, Terry <terrypingm@gmail.com> wrote:
> > >
> > >> As recommended I'm using modules as much as possible. I'd welcome any
> > >> general
> > >> critiques of this one (syntax, method, formatting, anything). But in
> > >> particular
> > >> why is it that my code seems to work OK, despite the two console
> errors
> > >> "Too
> > >> many unnamed arguments... What is wrong with those please?
> > >>
> > >> // Creates a hollow partial cone
> > >>
> > >> // Height = h
> > >> // Bottom diam = d1
> > >> // Top diam = d2
> > >> // center = true/false or 1/0; almost always use true
> > >> // $fn = typically 24 for control knob
> > >> // Thickness = t (same throughout)
> > >>
> > >> module hollowCyl_Full(h, d1, d2, center, $fn, t) {
> > >>
> > >> difference() {
> > >> // Larger diam, from which a difference is needed
> > >> cylinder(h, d1, d2, true, $fn); // ERROR?
> > >> <-----------------------------
> > >>
> > >> // Remove smaller diam, but higher, protruding at both ends
> > >> cylinder(h+.01, d1-2*t, d2-2*t, true, $fn); // ERROR?
> > >> <-----------------
> > >> }
> > >> }
> > >>
> > >> // EXAMPLE
> > >> hollowCyl_Full(9, 36, 28, true, 24, 1);
> > >>
> > >> https://www.dropbox.com/s/jmfgtbbl48xrzc0/HollowConeError.jpg?raw=1
> > >>
> > >> Terry
> > >> _______________________________________________
> > >> OpenSCAD mailing list
> > >> To unsubscribe send an email to discuss-leave@lists.openscad.org
> > >>
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
> >
>