discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

F5 works, F6 does not

J
jon
Wed, Mar 15, 2023 4:30 PM

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
    rotate([0, 0, -90]) {
        rotate([0, 90, 0])
            Tube(le);
        rotate([0, -90, 0])
            Tube(le);
        rotate([-90, 0, 0])
            Tube(3le);
        rotate([36.9, 0, 0]) rotate([-90, 0, 0])
            Tube(3
le);
        Tube(2*le);
        }
module Bottom() {
    BottomTubes();
    translate([0, 0, -ir - th])
        linear_extrude(th)
            projection(cut = false)
                BottomTubes();
    }
!Bottom();

Any idea what is wrong? inches = 25.4; eps = 0.01; $fn = 100; id = 0.709 * inches + 0.1; ir = id/2; th = 2; le = 1 * inches; module BottomTubes()     rotate([0, 0, -90]) {         rotate([0, 90, 0])             Tube(le);         rotate([0, -90, 0])             Tube(le);         rotate([-90, 0, 0])             Tube(3*le);         rotate([36.9, 0, 0]) rotate([-90, 0, 0])             Tube(3*le);         Tube(2*le);         } module Bottom() {     BottomTubes();     translate([0, 0, -ir - th])         linear_extrude(th)             projection(cut = false)                 BottomTubes();     } !Bottom();
GH
gene heskett
Wed, Mar 15, 2023 4:51 PM

On 3/15/23 12:32, jon wrote:

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
    rotate([0, 0, -90]) {
        rotate([0, 90, 0])
            Tube(le);
        rotate([0, -90, 0])
            Tube(le);
        rotate([-90, 0, 0])
            Tube(3le);
        rotate([36.9, 0, 0]) rotate([-90, 0, 0])
            Tube(3
le);
        Tube(2*le);
        }
module Bottom() {
    BottomTubes();
    translate([0, 0, -ir - th])
        linear_extrude(th)
            projection(cut = false)
                BottomTubes();
    }
!Bottom();
\

Copy/paste problem? Where is the module Tube() ?

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

On 3/15/23 12:32, jon wrote: > Any idea what is wrong? > > inches = 25.4; > eps = 0.01; > $fn = 100; > > id = 0.709 * inches + 0.1; > ir = id/2; > th = 2; > le = 1 * inches; > > module BottomTubes() >     rotate([0, 0, -90]) { >         rotate([0, 90, 0]) >             Tube(le); >         rotate([0, -90, 0]) >             Tube(le); >         rotate([-90, 0, 0]) >             Tube(3*le); >         rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >             Tube(3*le); >         Tube(2*le); >         } > module Bottom() { >     BottomTubes(); >     translate([0, 0, -ir - th]) >         linear_extrude(th) >             projection(cut = false) >                 BottomTubes(); >     } > !Bottom(); > \ Copy/paste problem? Where is the module Tube() ? Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>
GM
Gábor Magyar
Wed, Mar 15, 2023 5:00 PM

Wat is, where is the Tube() module??

"WARNING: Ignoring unknown module 'Tube' in file , line 13
WARNING: Ignoring unknown module 'Tube' in file , line 15
WARNING: Ignoring unknown module 'Tube' in file , line 17
WARNING: Ignoring unknown module 'Tube' in file , line 19
WARNING: Ignoring unknown module 'Tube' in file , line 20"

Does this come from some library?

jon jon@jonbondy.com ezt írta (időpont: 2023. márc. 15., Sze, 17:31):

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
rotate([0, 0, -90]) {
rotate([0, 90, 0])
Tube(le);
rotate([0, -90, 0])
Tube(le);
rotate([-90, 0, 0])
Tube(3le);
rotate([36.9, 0, 0]) rotate([-90, 0, 0])
Tube(3
le);
Tube(2*le);
}
module Bottom() {
BottomTubes();
translate([0, 0, -ir - th])
linear_extrude(th)
projection(cut = false)
BottomTubes();
}
!Bottom();


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

Wat is, where is the Tube() module?? "WARNING: Ignoring unknown module 'Tube' in file , line 13 WARNING: Ignoring unknown module 'Tube' in file , line 15 WARNING: Ignoring unknown module 'Tube' in file , line 17 WARNING: Ignoring unknown module 'Tube' in file , line 19 WARNING: Ignoring unknown module 'Tube' in file , line 20" Does this come from some library? jon <jon@jonbondy.com> ezt írta (időpont: 2023. márc. 15., Sze, 17:31): > > Any idea what is wrong? > > inches = 25.4; > eps = 0.01; > $fn = 100; > > id = 0.709 * inches + 0.1; > ir = id/2; > th = 2; > le = 1 * inches; > > module BottomTubes() > rotate([0, 0, -90]) { > rotate([0, 90, 0]) > Tube(le); > rotate([0, -90, 0]) > Tube(le); > rotate([-90, 0, 0]) > Tube(3*le); > rotate([36.9, 0, 0]) rotate([-90, 0, 0]) > Tube(3*le); > Tube(2*le); > } > module Bottom() { > BottomTubes(); > translate([0, 0, -ir - th]) > linear_extrude(th) > projection(cut = false) > BottomTubes(); > } > !Bottom(); > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Wed, Mar 15, 2023 5:25 PM

Tube means what?
Is it a cylinder or a hollow cylinder?
Is it centered or resting on the x-y plane?
In case it is a hollow cylinder there should be OD and ID as parameters
assuming that height = diameter.

On Wed, 15 Mar 2023 at 22:01, jon jon@jonbondy.com wrote:

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
rotate([0, 0, -90]) {
rotate([0, 90, 0])
Tube(le);
rotate([0, -90, 0])
Tube(le);
rotate([-90, 0, 0])
Tube(3le);
rotate([36.9, 0, 0]) rotate([-90, 0, 0])
Tube(3
le);
Tube(2*le);
}
module Bottom() {
BottomTubes();
translate([0, 0, -ir - th])
linear_extrude(th)
projection(cut = false)
BottomTubes();
}
!Bottom();


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

Tube means what? Is it a cylinder or a hollow cylinder? Is it centered or resting on the x-y plane? In case it is a hollow cylinder there should be OD and ID as parameters assuming that height = diameter. On Wed, 15 Mar 2023 at 22:01, jon <jon@jonbondy.com> wrote: > Any idea what is wrong? > > inches = 25.4; > eps = 0.01; > $fn = 100; > > id = 0.709 * inches + 0.1; > ir = id/2; > th = 2; > le = 1 * inches; > > module BottomTubes() > rotate([0, 0, -90]) { > rotate([0, 90, 0]) > Tube(le); > rotate([0, -90, 0]) > Tube(le); > rotate([-90, 0, 0]) > Tube(3*le); > rotate([36.9, 0, 0]) rotate([-90, 0, 0]) > Tube(3*le); > Tube(2*le); > } > module Bottom() { > BottomTubes(); > translate([0, 0, -ir - th]) > linear_extrude(th) > projection(cut = false) > BottomTubes(); > } > !Bottom(); > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
J
jon
Wed, Mar 15, 2023 5:25 PM

Sorry.

module Tube(le) {
    difference() {
        cylinder(h = le, d = id + 2th);
        translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
        }
//    cylinder(h = 2000, d = 2);
    }

On 3/15/2023 1:00 PM, Gábor Magyar wrote:

Wat is, where is the Tube() module??

"WARNING: Ignoring unknown module 'Tube' in file , line 13
WARNING: Ignoring unknown module 'Tube' in file , line 15
WARNING: Ignoring unknown module 'Tube' in file , line 17
WARNING: Ignoring unknown module 'Tube' in file , line 19
WARNING: Ignoring unknown module 'Tube' in file , line 20"

Does this come from some library?

jon jon@jonbondy.com ezt írta (időpont: 2023. márc. 15., Sze, 17:31):

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
rotate([0, 0, -90]) {
rotate([0, 90, 0])
Tube(le);
rotate([0, -90, 0])
Tube(le);
rotate([-90, 0, 0])
Tube(3le);
rotate([36.9, 0, 0]) rotate([-90, 0, 0])
Tube(3
le);
Tube(2*le);
}
module Bottom() {
BottomTubes();
translate([0, 0, -ir - th])
linear_extrude(th)
projection(cut = false)
BottomTubes();
}
!Bottom();


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

Sorry. module Tube(le) {     difference() {         cylinder(h = le, d = id + 2*th);         translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id);         } //    cylinder(h = 2000, d = 2);     } On 3/15/2023 1:00 PM, Gábor Magyar wrote: > Wat is, where is the Tube() module?? > > "WARNING: Ignoring unknown module 'Tube' in file , line 13 > WARNING: Ignoring unknown module 'Tube' in file , line 15 > WARNING: Ignoring unknown module 'Tube' in file , line 17 > WARNING: Ignoring unknown module 'Tube' in file , line 19 > WARNING: Ignoring unknown module 'Tube' in file , line 20" > > Does this come from some library? > > jon <jon@jonbondy.com> ezt írta (időpont: 2023. márc. 15., Sze, 17:31): >> Any idea what is wrong? >> >> inches = 25.4; >> eps = 0.01; >> $fn = 100; >> >> id = 0.709 * inches + 0.1; >> ir = id/2; >> th = 2; >> le = 1 * inches; >> >> module BottomTubes() >> rotate([0, 0, -90]) { >> rotate([0, 90, 0]) >> Tube(le); >> rotate([0, -90, 0]) >> Tube(le); >> rotate([-90, 0, 0]) >> Tube(3*le); >> rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >> Tube(3*le); >> Tube(2*le); >> } >> module Bottom() { >> BottomTubes(); >> translate([0, 0, -ir - th]) >> linear_extrude(th) >> projection(cut = false) >> BottomTubes(); >> } >> !Bottom(); >> _______________________________________________ >> 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
SP
Sanjeev Prabhakar
Wed, Mar 15, 2023 5:32 PM

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module Tube(le) {
difference() {
cylinder(h = le, d = id + 2th);
translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
}}

module BottomTubes()
rotate([0, 0, -90]) {
rotate([0, 90, 0])
Tube(le);
rotate([0, -90, 0])
Tube(le);
rotate([-90, 0, 0])
Tube(3le);
rotate([36.9, 0, 0]) rotate([-90, 0, 0])
Tube(3
le);
Tube(2*le);
}
module Bottom() {
BottomTubes();
translate([0, 0, -ir - th])
linear_extrude(th)
projection(cut = false)
BottomTubes();
}
!Bottom();

No issues in rendering for me

On Wed, 15 Mar 2023 at 22:56, jon jon@jonbondy.com wrote:

Sorry.

module Tube(le) {
difference() {
cylinder(h = le, d = id + 2th);
translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
}
//    cylinder(h = 2000, d = 2);
}

On 3/15/2023 1:00 PM, Gábor Magyar wrote:

Wat is, where is the Tube() module??

"WARNING: Ignoring unknown module 'Tube' in file , line 13
WARNING: Ignoring unknown module 'Tube' in file , line 15
WARNING: Ignoring unknown module 'Tube' in file , line 17
WARNING: Ignoring unknown module 'Tube' in file , line 19
WARNING: Ignoring unknown module 'Tube' in file , line 20"

Does this come from some library?

jon jon@jonbondy.com ezt írta (időpont: 2023. márc. 15., Sze, 17:31):

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
rotate([0, 0, -90]) {
rotate([0, 90, 0])
Tube(le);
rotate([0, -90, 0])
Tube(le);
rotate([-90, 0, 0])
Tube(3le);
rotate([36.9, 0, 0]) rotate([-90, 0, 0])
Tube(3
le);
Tube(2*le);
}
module Bottom() {
BottomTubes();
translate([0, 0, -ir - th])
linear_extrude(th)
projection(cut = false)
BottomTubes();
}
!Bottom();


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


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

inches = 25.4; eps = 0.01; $fn = 100; id = 0.709 * inches + 0.1; ir = id/2; th = 2; le = 1 * inches; module Tube(le) { difference() { cylinder(h = le, d = id + 2*th); translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id); }} module BottomTubes() rotate([0, 0, -90]) { rotate([0, 90, 0]) Tube(le); rotate([0, -90, 0]) Tube(le); rotate([-90, 0, 0]) Tube(3*le); rotate([36.9, 0, 0]) rotate([-90, 0, 0]) Tube(3*le); Tube(2*le); } module Bottom() { BottomTubes(); translate([0, 0, -ir - th]) linear_extrude(th) projection(cut = false) BottomTubes(); } !Bottom(); No issues in rendering for me On Wed, 15 Mar 2023 at 22:56, jon <jon@jonbondy.com> wrote: > Sorry. > > > module Tube(le) { > difference() { > cylinder(h = le, d = id + 2*th); > translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id); > } > // cylinder(h = 2000, d = 2); > } > > > On 3/15/2023 1:00 PM, Gábor Magyar wrote: > > Wat is, where is the Tube() module?? > > > > "WARNING: Ignoring unknown module 'Tube' in file , line 13 > > WARNING: Ignoring unknown module 'Tube' in file , line 15 > > WARNING: Ignoring unknown module 'Tube' in file , line 17 > > WARNING: Ignoring unknown module 'Tube' in file , line 19 > > WARNING: Ignoring unknown module 'Tube' in file , line 20" > > > > Does this come from some library? > > > > jon <jon@jonbondy.com> ezt írta (időpont: 2023. márc. 15., Sze, 17:31): > >> Any idea what is wrong? > >> > >> inches = 25.4; > >> eps = 0.01; > >> $fn = 100; > >> > >> id = 0.709 * inches + 0.1; > >> ir = id/2; > >> th = 2; > >> le = 1 * inches; > >> > >> module BottomTubes() > >> rotate([0, 0, -90]) { > >> rotate([0, 90, 0]) > >> Tube(le); > >> rotate([0, -90, 0]) > >> Tube(le); > >> rotate([-90, 0, 0]) > >> Tube(3*le); > >> rotate([36.9, 0, 0]) rotate([-90, 0, 0]) > >> Tube(3*le); > >> Tube(2*le); > >> } > >> module Bottom() { > >> BottomTubes(); > >> translate([0, 0, -ir - th]) > >> linear_extrude(th) > >> projection(cut = false) > >> BottomTubes(); > >> } > >> !Bottom(); > >> _______________________________________________ > >> 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 > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
J
jon
Wed, Mar 15, 2023 5:33 PM

Again, sorry for not testing the code.  This compiles and then fails with F6

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module Tube(le) {
    difference() {
        cylinder(h = le, d = id + 2th);
        translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
        }
//    cylinder(h = 2000, d = 2);
    }

module BottomTubes()
    rotate([0, 0, -90]) {
        rotate([0, 90, 0])
            Tube(le);
        rotate([0, -90, 0])
            Tube(le);
        rotate([-90, 0, 0])
            Tube(3le);
        rotate([36.9, 0, 0]) rotate([-90, 0, 0])
            Tube(3
le);
        Tube(2*le);
        }
module Bottom() {
    BottomTubes();
    translate([0, 0, -ir - th])
        linear_extrude(th)
            projection(cut = false)
                BottomTubes();
    }
!Bottom();

On 3/15/2023 1:00 PM, Gábor Magyar wrote:

Wat is, where is the Tube() module??

"WARNING: Ignoring unknown module 'Tube' in file , line 13
WARNING: Ignoring unknown module 'Tube' in file , line 15
WARNING: Ignoring unknown module 'Tube' in file , line 17
WARNING: Ignoring unknown module 'Tube' in file , line 19
WARNING: Ignoring unknown module 'Tube' in file , line 20"

Does this come from some library?

jon jon@jonbondy.com ezt írta (időpont: 2023. márc. 15., Sze, 17:31):

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
rotate([0, 0, -90]) {
rotate([0, 90, 0])
Tube(le);
rotate([0, -90, 0])
Tube(le);
rotate([-90, 0, 0])
Tube(3le);
rotate([36.9, 0, 0]) rotate([-90, 0, 0])
Tube(3
le);
Tube(2*le);
}
module Bottom() {
BottomTubes();
translate([0, 0, -ir - th])
linear_extrude(th)
projection(cut = false)
BottomTubes();
}
!Bottom();


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

Again, sorry for not testing the code.  This compiles and then fails with F6 inches = 25.4; eps = 0.01; $fn = 100; id = 0.709 * inches + 0.1; ir = id/2; th = 2; le = 1 * inches; module Tube(le) {     difference() {         cylinder(h = le, d = id + 2*th);         translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id);         } //    cylinder(h = 2000, d = 2);     } module BottomTubes()     rotate([0, 0, -90]) {         rotate([0, 90, 0])             Tube(le);         rotate([0, -90, 0])             Tube(le);         rotate([-90, 0, 0])             Tube(3*le);         rotate([36.9, 0, 0]) rotate([-90, 0, 0])             Tube(3*le);         Tube(2*le);         } module Bottom() {     BottomTubes();     translate([0, 0, -ir - th])         linear_extrude(th)             projection(cut = false)                 BottomTubes();     } !Bottom(); On 3/15/2023 1:00 PM, Gábor Magyar wrote: > Wat is, where is the Tube() module?? > > "WARNING: Ignoring unknown module 'Tube' in file , line 13 > WARNING: Ignoring unknown module 'Tube' in file , line 15 > WARNING: Ignoring unknown module 'Tube' in file , line 17 > WARNING: Ignoring unknown module 'Tube' in file , line 19 > WARNING: Ignoring unknown module 'Tube' in file , line 20" > > Does this come from some library? > > jon <jon@jonbondy.com> ezt írta (időpont: 2023. márc. 15., Sze, 17:31): >> Any idea what is wrong? >> >> inches = 25.4; >> eps = 0.01; >> $fn = 100; >> >> id = 0.709 * inches + 0.1; >> ir = id/2; >> th = 2; >> le = 1 * inches; >> >> module BottomTubes() >> rotate([0, 0, -90]) { >> rotate([0, 90, 0]) >> Tube(le); >> rotate([0, -90, 0]) >> Tube(le); >> rotate([-90, 0, 0]) >> Tube(3*le); >> rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >> Tube(3*le); >> Tube(2*le); >> } >> module Bottom() { >> BottomTubes(); >> translate([0, 0, -ir - th]) >> linear_extrude(th) >> projection(cut = false) >> BottomTubes(); >> } >> !Bottom(); >> _______________________________________________ >> 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
J
jon
Wed, Mar 15, 2023 6:28 PM

I have attached my working code.

Back() is fine with both the current development release and the latest
standard release.

Bottom() creates an STL with the latest standard release, but gets all
confused with the current development release.

Top() is fine with the standard release.

The shapes are not that surprising.  I did not expect the current
development release to fail.   I was even more surprised that the latest
standard release did much better than the current development release.

On 3/15/2023 1:33 PM, jon wrote:

Again, sorry for not testing the code.  This compiles and then fails
with F6

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module Tube(le) {
    difference() {
        cylinder(h = le, d = id + 2th);
        translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
        }
//    cylinder(h = 2000, d = 2);
    }

module BottomTubes()
    rotate([0, 0, -90]) {
        rotate([0, 90, 0])
            Tube(le);
        rotate([0, -90, 0])
            Tube(le);
        rotate([-90, 0, 0])
            Tube(3le);
        rotate([36.9, 0, 0]) rotate([-90, 0, 0])
            Tube(3
le);
        Tube(2*le);
        }
module Bottom() {
    BottomTubes();
    translate([0, 0, -ir - th])
        linear_extrude(th)
            projection(cut = false)
                BottomTubes();
    }
!Bottom();

On 3/15/2023 1:00 PM, Gábor Magyar wrote:

Wat is, where is the Tube() module??

"WARNING: Ignoring unknown module 'Tube' in file , line 13
WARNING: Ignoring unknown module 'Tube' in file , line 15
WARNING: Ignoring unknown module 'Tube' in file , line 17
WARNING: Ignoring unknown module 'Tube' in file , line 19
WARNING: Ignoring unknown module 'Tube' in file , line 20"

Does this come from some library?

jon jon@jonbondy.com ezt írta (időpont: 2023. márc. 15., Sze, 17:31):

Any idea what is wrong?

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module BottomTubes()
      rotate([0, 0, -90]) {
          rotate([0, 90, 0])
              Tube(le);
          rotate([0, -90, 0])
              Tube(le);
          rotate([-90, 0, 0])
              Tube(3le);
          rotate([36.9, 0, 0]) rotate([-90, 0, 0])
              Tube(3
le);
          Tube(2*le);
          }
module Bottom() {
      BottomTubes();
      translate([0, 0, -ir - th])
          linear_extrude(th)
              projection(cut = false)
                  BottomTubes();
      }
!Bottom();


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


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

I have attached my working code. Back() is fine with both the current development release and the latest standard release. Bottom() creates an STL with the latest standard release, but gets all confused with the current development release. Top() is fine with the standard release. The shapes are not that surprising.  I did not expect the current development release to fail.   I was even more surprised that the latest standard release did much better than the current development release. On 3/15/2023 1:33 PM, jon wrote: > Again, sorry for not testing the code.  This compiles and then fails > with F6 > > > > inches = 25.4; > eps = 0.01; > $fn = 100; > > id = 0.709 * inches + 0.1; > ir = id/2; > th = 2; > le = 1 * inches; > > > module Tube(le) { >     difference() { >         cylinder(h = le, d = id + 2*th); >         translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id); >         } > //    cylinder(h = 2000, d = 2); >     } > > module BottomTubes() >     rotate([0, 0, -90]) { >         rotate([0, 90, 0]) >             Tube(le); >         rotate([0, -90, 0]) >             Tube(le); >         rotate([-90, 0, 0]) >             Tube(3*le); >         rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >             Tube(3*le); >         Tube(2*le); >         } > module Bottom() { >     BottomTubes(); >     translate([0, 0, -ir - th]) >         linear_extrude(th) >             projection(cut = false) >                 BottomTubes(); >     } > !Bottom(); > > > > > On 3/15/2023 1:00 PM, Gábor Magyar wrote: >> Wat is, where is the Tube() module?? >> >> "WARNING: Ignoring unknown module 'Tube' in file , line 13 >> WARNING: Ignoring unknown module 'Tube' in file , line 15 >> WARNING: Ignoring unknown module 'Tube' in file , line 17 >> WARNING: Ignoring unknown module 'Tube' in file , line 19 >> WARNING: Ignoring unknown module 'Tube' in file , line 20" >> >> Does this come from some library? >> >> jon <jon@jonbondy.com> ezt írta (időpont: 2023. márc. 15., Sze, 17:31): >>> Any idea what is wrong? >>> >>> inches = 25.4; >>> eps = 0.01; >>> $fn = 100; >>> >>> id = 0.709 * inches + 0.1; >>> ir = id/2; >>> th = 2; >>> le = 1 * inches; >>> >>> module BottomTubes() >>>       rotate([0, 0, -90]) { >>>           rotate([0, 90, 0]) >>>               Tube(le); >>>           rotate([0, -90, 0]) >>>               Tube(le); >>>           rotate([-90, 0, 0]) >>>               Tube(3*le); >>>           rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >>>               Tube(3*le); >>>           Tube(2*le); >>>           } >>> module Bottom() { >>>       BottomTubes(); >>>       translate([0, 0, -ir - th]) >>>           linear_extrude(th) >>>               projection(cut = false) >>>                   BottomTubes(); >>>       } >>> !Bottom(); >>> _______________________________________________ >>> 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 > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
GH
gene heskett
Wed, Mar 15, 2023 6:42 PM

On 3/15/23 13:35, jon wrote:

Again, sorry for not testing the code.  This compiles and then fails
with F6

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module Tube(le) {
    difference() {
        cylinder(h = le, d = id + 2th);
        translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
        }
//    cylinder(h = 2000, d = 2);
    }

module BottomTubes()
    rotate([0, 0, -90]) {
        rotate([0, 90, 0])
            Tube(le);
        rotate([0, -90, 0])
            Tube(le);
        rotate([-90, 0, 0])
            Tube(3le);
        rotate([36.9, 0, 0]) rotate([-90, 0, 0])
            Tube(3
le);
        Tube(2*le);
        }
module Bottom() {
    BottomTubes();
    translate([0, 0, -ir - th])
        linear_extrude(th)
            projection(cut = false)
                BottomTubes();
    }
!Bottom();

And both F5 and F6 are OK here with the AppImage of
OpenSCAD version 2023.03.05.ai13734 (git 245205575)

You perhaps have an older release?

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

On 3/15/23 13:35, jon wrote: > Again, sorry for not testing the code.  This compiles and then fails > with F6 > > > > inches = 25.4; > eps = 0.01; > $fn = 100; > > id = 0.709 * inches + 0.1; > ir = id/2; > th = 2; > le = 1 * inches; > > > module Tube(le) { >     difference() { >         cylinder(h = le, d = id + 2*th); >         translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id); >         } > //    cylinder(h = 2000, d = 2); >     } > > module BottomTubes() >     rotate([0, 0, -90]) { >         rotate([0, 90, 0]) >             Tube(le); >         rotate([0, -90, 0]) >             Tube(le); >         rotate([-90, 0, 0]) >             Tube(3*le); >         rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >             Tube(3*le); >         Tube(2*le); >         } > module Bottom() { >     BottomTubes(); >     translate([0, 0, -ir - th]) >         linear_extrude(th) >             projection(cut = false) >                 BottomTubes(); >     } > !Bottom(); And both F5 and F6 are OK here with the AppImage of OpenSCAD version 2023.03.05.ai13734 (git 245205575) You perhaps have an older release? Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>
GH
gene heskett
Wed, Mar 15, 2023 6:50 PM

On 3/15/23 14:44, gene heskett wrote:

On 3/15/23 13:35, jon wrote:

Again, sorry for not testing the code.  This compiles and then fails
with F6

inches = 25.4;
eps = 0.01;
$fn = 100;

id = 0.709 * inches + 0.1;
ir = id/2;
th = 2;
le = 1 * inches;

module Tube(le) {
     difference() {
         cylinder(h = le, d = id + 2th);
         translate([0, 0, -eps]) cylinder(h = le + 2
eps, d = id);
         }
//    cylinder(h = 2000, d = 2);
     }

module BottomTubes()
     rotate([0, 0, -90]) {
         rotate([0, 90, 0])
             Tube(le);
         rotate([0, -90, 0])
             Tube(le);
         rotate([-90, 0, 0])
             Tube(3le);
         rotate([36.9, 0, 0]) rotate([-90, 0, 0])
             Tube(3
le);
         Tube(2*le);
         }
module Bottom() {
     BottomTubes();
     translate([0, 0, -ir - th])
         linear_extrude(th)
             projection(cut = false)
                 BottomTubes();
     }
!Bottom();

And both F5 and F6 are OK here with the AppImage of
OpenSCAD version 2023.03.05.ai13734 (git 245205575)

You perhaps have an older release?

Sorry too, I should have added its debian linux 11, up to date a/o
yesterday.

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

On 3/15/23 14:44, gene heskett wrote: > On 3/15/23 13:35, jon wrote: >> Again, sorry for not testing the code.  This compiles and then fails >> with F6 >> >> >> >> inches = 25.4; >> eps = 0.01; >> $fn = 100; >> >> id = 0.709 * inches + 0.1; >> ir = id/2; >> th = 2; >> le = 1 * inches; >> >> >> module Tube(le) { >>      difference() { >>          cylinder(h = le, d = id + 2*th); >>          translate([0, 0, -eps]) cylinder(h = le + 2*eps, d = id); >>          } >> //    cylinder(h = 2000, d = 2); >>      } >> >> module BottomTubes() >>      rotate([0, 0, -90]) { >>          rotate([0, 90, 0]) >>              Tube(le); >>          rotate([0, -90, 0]) >>              Tube(le); >>          rotate([-90, 0, 0]) >>              Tube(3*le); >>          rotate([36.9, 0, 0]) rotate([-90, 0, 0]) >>              Tube(3*le); >>          Tube(2*le); >>          } >> module Bottom() { >>      BottomTubes(); >>      translate([0, 0, -ir - th]) >>          linear_extrude(th) >>              projection(cut = false) >>                  BottomTubes(); >>      } >> !Bottom(); > > And both F5 and F6 are OK here with the AppImage of > OpenSCAD version 2023.03.05.ai13734 (git 245205575) > > You perhaps have an older release? > Sorry too, I should have added its debian linux 11, up to date a/o yesterday. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>