discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

debugging a polyhedron....

BB
Bruno Boettcher
Thu, Jan 20, 2022 11:37 AM

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine, and i
was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and that
error message is not really help full, since i don't know how to find out
what's going wrong? and i would like to know how to debug something like
that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than the
diff i try to achieve, but as soon as i do the diff some spourious polygon
appears in the preview at the back of the thing, and it doesn't compile
anymore.... invalidating the standing fin, solves it, and i could use a
cube to emulate it (as done in halter2), but that's unsatisfactory :D i
would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr

Hello! thought i should try a smart solution, turns out to be a time hog :D a trivial problem, i need a new capsule holder for my coffeemachine, and i was tinkering around on how to achieve this.... code looks to big to be posted, so i put it up on git: https://github.com/nohkumado/openscad-nespresso i added the (hand drawing) of the polyhedron i try to achieve, the pre-render is perfectly fine, but as soon as i compile it it says: ERROR: The given mesh is not closed! Unable to convert to CGAL_Nef_Polyhedron. Geometries in cache: 4 so i am puzzled, first of all there should be only 1 geometry, and that error message is not really help full, since i don't know how to find out what's going wrong? and i would like to know how to debug something like that? if we consider the failing thing: difference() { schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); color("red") translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, renfort=false); } each of the subelements compiles fine, the upper box is bigger than the diff i try to achieve, but as soon as i do the diff some spourious polygon appears in the preview at the back of the thing, and it doesn't compile anymore.... invalidating the standing fin, solves it, and i could use a cube to emulate it (as done in halter2), but that's unsatisfactory :D i would really like to know why or how this goes wrong and how to find out what is going wrong (in order to stop bothering all of you)? thanks in advance for any insight! -- ciao Bruno =========================================== http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
NH
nop head
Thu, Jan 20, 2022 11:43 AM

Have you tried View / Thrown Together mode and looked for purple faces? You
should not be able to see any purple on a closed polygon. If it has a hole,
or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine, and i
was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and that
error message is not really help full, since i don't know how to find out
what's going wrong? and i would like to know how to debug something like
that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than the
diff i try to achieve, but as soon as i do the diff some spourious polygon
appears in the preview at the back of the thing, and it doesn't compile
anymore.... invalidating the standing fin, solves it, and i could use a
cube to emulate it (as done in halter2), but that's unsatisfactory :D i
would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

Have you tried View / Thrown Together mode and looked for purple faces? You should not be able to see any purple on a closed polygon. If it has a hole, or any faces are inside out, you will see purple. On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> wrote: > Hello! > > thought i should try a smart solution, turns out to be a time hog :D > a trivial problem, i need a new capsule holder for my coffeemachine, and i > was tinkering around on how to achieve this.... > > code looks to big to be posted, so i put it up on git: > https://github.com/nohkumado/openscad-nespresso > > i added the (hand drawing) of the polyhedron i try to achieve, the > pre-render is perfectly fine, but as soon as i compile it it says: > > ERROR: The given mesh is not closed! Unable to convert to > CGAL_Nef_Polyhedron. > Geometries in cache: 4 > > so i am puzzled, first of all there should be only 1 geometry, and that > error message is not really help full, since i don't know how to find out > what's going wrong? and i would like to know how to debug something like > that? > > if we consider the failing thing: > difference() > { > schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); > color("red") > translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, > renfort=false); > } > > each of the subelements compiles fine, the upper box is bigger than the > diff i try to achieve, but as soon as i do the diff some spourious polygon > appears in the preview at the back of the thing, and it doesn't compile > anymore.... invalidating the standing fin, solves it, and i could use a > cube to emulate it (as done in halter2), but that's unsatisfactory :D i > would really like to know why or how this goes wrong and how to find out > what is going wrong (in order to stop bothering all of you)? > > thanks in advance for any insight! > > -- > ciao > Bruno > > =========================================== > http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, > <http://bboett.free.fr> > http://aikido.zorn.free.fr > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
BB
Bruno Boettcher
Thu, Jan 20, 2022 11:47 AM

Yes did that, can't find any purple face nor any hole, but then my vision
is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head nop.head@gmail.com:

Have you tried View / Thrown Together mode and looked for purple faces?
You should not be able to see any purple on a closed polygon. If it has a
hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine, and
i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and that
error message is not really help full, since i don't know how to find out
what's going wrong? and i would like to know how to debug something like
that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than the
diff i try to achieve, but as soon as i do the diff some spourious polygon
appears in the preview at the back of the thing, and it doesn't compile
anymore.... invalidating the standing fin, solves it, and i could use a
cube to emulate it (as done in halter2), but that's unsatisfactory :D i
would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

Yes did that, can't find any purple face nor any hole, but then my vision is not the best... Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com>: > Have you tried View / Thrown Together mode and looked for purple faces? > You should not be able to see any purple on a closed polygon. If it has a > hole, or any faces are inside out, you will see purple. > > On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> wrote: > >> Hello! >> >> thought i should try a smart solution, turns out to be a time hog :D >> a trivial problem, i need a new capsule holder for my coffeemachine, and >> i was tinkering around on how to achieve this.... >> >> code looks to big to be posted, so i put it up on git: >> https://github.com/nohkumado/openscad-nespresso >> >> i added the (hand drawing) of the polyhedron i try to achieve, the >> pre-render is perfectly fine, but as soon as i compile it it says: >> >> ERROR: The given mesh is not closed! Unable to convert to >> CGAL_Nef_Polyhedron. >> Geometries in cache: 4 >> >> so i am puzzled, first of all there should be only 1 geometry, and that >> error message is not really help full, since i don't know how to find out >> what's going wrong? and i would like to know how to debug something like >> that? >> >> if we consider the failing thing: >> difference() >> { >> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >> color("red") >> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >> renfort=false); >> } >> >> each of the subelements compiles fine, the upper box is bigger than the >> diff i try to achieve, but as soon as i do the diff some spourious polygon >> appears in the preview at the back of the thing, and it doesn't compile >> anymore.... invalidating the standing fin, solves it, and i could use a >> cube to emulate it (as done in halter2), but that's unsatisfactory :D i >> would really like to know why or how this goes wrong and how to find out >> what is going wrong (in order to stop bothering all of you)? >> >> thanks in advance for any insight! >> >> -- >> ciao >> Bruno >> >> =========================================== >> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >> <http://bboett.free.fr> >> http://aikido.zorn.free.fr >> _______________________________________________ >> 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 > -- ciao Bruno =========================================== http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
NH
nop head
Thu, Jan 20, 2022 11:55 AM

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com wrote:

Yes did that, can't find any purple face nor any hole, but then my vision
is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head nop.head@gmail.com:

Have you tried View / Thrown Together mode and looked for purple faces?
You should not be able to see any purple on a closed polygon. If it has a
hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine, and
i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and that
error message is not really help full, since i don't know how to find out
what's going wrong? and i would like to know how to debug something like
that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than the
diff i try to achieve, but as soon as i do the diff some spourious polygon
appears in the preview at the back of the thing, and it doesn't compile
anymore.... invalidating the standing fin, solves it, and i could use a
cube to emulate it (as done in halter2), but that's unsatisfactory :D i
would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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 don't get any errors. I get Top level object is a 3D object: Simple: yes Vertices: 118 Halfedges: 358 Edges: 179 Halffacets: 132 Facets: 66 Volumes: 3 [image: image.png] On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> wrote: > Yes did that, can't find any purple face nor any hole, but then my vision > is not the best... > > Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com>: > >> Have you tried View / Thrown Together mode and looked for purple faces? >> You should not be able to see any purple on a closed polygon. If it has a >> hole, or any faces are inside out, you will see purple. >> >> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> wrote: >> >>> Hello! >>> >>> thought i should try a smart solution, turns out to be a time hog :D >>> a trivial problem, i need a new capsule holder for my coffeemachine, and >>> i was tinkering around on how to achieve this.... >>> >>> code looks to big to be posted, so i put it up on git: >>> https://github.com/nohkumado/openscad-nespresso >>> >>> i added the (hand drawing) of the polyhedron i try to achieve, the >>> pre-render is perfectly fine, but as soon as i compile it it says: >>> >>> ERROR: The given mesh is not closed! Unable to convert to >>> CGAL_Nef_Polyhedron. >>> Geometries in cache: 4 >>> >>> so i am puzzled, first of all there should be only 1 geometry, and that >>> error message is not really help full, since i don't know how to find out >>> what's going wrong? and i would like to know how to debug something like >>> that? >>> >>> if we consider the failing thing: >>> difference() >>> { >>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>> color("red") >>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>> renfort=false); >>> } >>> >>> each of the subelements compiles fine, the upper box is bigger than the >>> diff i try to achieve, but as soon as i do the diff some spourious polygon >>> appears in the preview at the back of the thing, and it doesn't compile >>> anymore.... invalidating the standing fin, solves it, and i could use a >>> cube to emulate it (as done in halter2), but that's unsatisfactory :D i >>> would really like to know why or how this goes wrong and how to find out >>> what is going wrong (in order to stop bothering all of you)? >>> >>> thanks in advance for any insight! >>> >>> -- >>> ciao >>> Bruno >>> >>> =========================================== >>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>> <http://bboett.free.fr> >>> http://aikido.zorn.free.fr >>> _______________________________________________ >>> 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 >> > > > -- > ciao > Bruno > > =========================================== > http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, > <http://bboett.free.fr> > http://aikido.zorn.free.fr > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
BB
Bruno Boettcher
Thu, Jan 20, 2022 11:58 AM

ah yeah.....
in the git there's the "working" version, please set on line 26
renfort=true!
ciao
Bruno

Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head nop.head@gmail.com:

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com wrote:

Yes did that, can't find any purple face nor any hole, but then my vision
is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head nop.head@gmail.com:

Have you tried View / Thrown Together mode and looked for purple faces?
You should not be able to see any purple on a closed polygon. If it has a
hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine,
and i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and that
error message is not really help full, since i don't know how to find out
what's going wrong? and i would like to know how to debug something like
that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than the
diff i try to achieve, but as soon as i do the diff some spourious polygon
appears in the preview at the back of the thing, and it doesn't compile
anymore.... invalidating the standing fin, solves it, and i could use a
cube to emulate it (as done in halter2), but that's unsatisfactory :D i
would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

ah yeah..... in the git there's the "working" version, please set on line 26 renfort=true! ciao Bruno Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com>: > I don't get any errors. I get > > Top level object is a 3D object: > Simple: yes > Vertices: 118 > Halfedges: 358 > Edges: 179 > Halffacets: 132 > Facets: 66 > Volumes: 3 > > [image: image.png] > > On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> wrote: > >> Yes did that, can't find any purple face nor any hole, but then my vision >> is not the best... >> >> Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com>: >> >>> Have you tried View / Thrown Together mode and looked for purple faces? >>> You should not be able to see any purple on a closed polygon. If it has a >>> hole, or any faces are inside out, you will see purple. >>> >>> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> wrote: >>> >>>> Hello! >>>> >>>> thought i should try a smart solution, turns out to be a time hog :D >>>> a trivial problem, i need a new capsule holder for my coffeemachine, >>>> and i was tinkering around on how to achieve this.... >>>> >>>> code looks to big to be posted, so i put it up on git: >>>> https://github.com/nohkumado/openscad-nespresso >>>> >>>> i added the (hand drawing) of the polyhedron i try to achieve, the >>>> pre-render is perfectly fine, but as soon as i compile it it says: >>>> >>>> ERROR: The given mesh is not closed! Unable to convert to >>>> CGAL_Nef_Polyhedron. >>>> Geometries in cache: 4 >>>> >>>> so i am puzzled, first of all there should be only 1 geometry, and that >>>> error message is not really help full, since i don't know how to find out >>>> what's going wrong? and i would like to know how to debug something like >>>> that? >>>> >>>> if we consider the failing thing: >>>> difference() >>>> { >>>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>>> color("red") >>>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>>> renfort=false); >>>> } >>>> >>>> each of the subelements compiles fine, the upper box is bigger than the >>>> diff i try to achieve, but as soon as i do the diff some spourious polygon >>>> appears in the preview at the back of the thing, and it doesn't compile >>>> anymore.... invalidating the standing fin, solves it, and i could use a >>>> cube to emulate it (as done in halter2), but that's unsatisfactory :D i >>>> would really like to know why or how this goes wrong and how to find out >>>> what is going wrong (in order to stop bothering all of you)? >>>> >>>> thanks in advance for any insight! >>>> >>>> -- >>>> ciao >>>> Bruno >>>> >>>> =========================================== >>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>> <http://bboett.free.fr> >>>> http://aikido.zorn.free.fr >>>> _______________________________________________ >>>> 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 >>> >> >> >> -- >> ciao >> Bruno >> >> =========================================== >> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >> <http://bboett.free.fr> >> http://aikido.zorn.free.fr >> _______________________________________________ >> 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 > -- ciao Bruno =========================================== http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
BB
Bruno Boettcher
Thu, Jan 20, 2022 11:59 AM

ah yes... didn't want something failing in the git, was late last night....
please also comment line 6 and uncomment line 5.....

Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher <bboett@gmail.com

:

ah yeah.....
in the git there's the "working" version, please set on line 26
renfort=true!
ciao
Bruno

Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head nop.head@gmail.com:

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com wrote:

Yes did that, can't find any purple face nor any hole, but then my
vision is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com

:

Have you tried View / Thrown Together mode and looked for purple faces?
You should not be able to see any purple on a closed polygon. If it has a
hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine,
and i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and
that error message is not really help full, since i don't know how to find
out what's going wrong? and i would like to know how to debug something
like that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than
the diff i try to achieve, but as soon as i do the diff some spourious
polygon appears in the preview at the back of the thing, and it doesn't
compile anymore.... invalidating the standing fin, solves it, and i could
use a cube to emulate it (as done in halter2), but that's unsatisfactory :D
i would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

ah yes... didn't want something failing in the git, was late last night.... please also comment line 6 and uncomment line 5..... Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher <bboett@gmail.com >: > ah yeah..... > in the git there's the "working" version, please set on line 26 > renfort=true! > ciao > Bruno > > Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com>: > >> I don't get any errors. I get >> >> Top level object is a 3D object: >> Simple: yes >> Vertices: 118 >> Halfedges: 358 >> Edges: 179 >> Halffacets: 132 >> Facets: 66 >> Volumes: 3 >> >> [image: image.png] >> >> On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> wrote: >> >>> Yes did that, can't find any purple face nor any hole, but then my >>> vision is not the best... >>> >>> Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com >>> >: >>> >>>> Have you tried View / Thrown Together mode and looked for purple faces? >>>> You should not be able to see any purple on a closed polygon. If it has a >>>> hole, or any faces are inside out, you will see purple. >>>> >>>> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> wrote: >>>> >>>>> Hello! >>>>> >>>>> thought i should try a smart solution, turns out to be a time hog :D >>>>> a trivial problem, i need a new capsule holder for my coffeemachine, >>>>> and i was tinkering around on how to achieve this.... >>>>> >>>>> code looks to big to be posted, so i put it up on git: >>>>> https://github.com/nohkumado/openscad-nespresso >>>>> >>>>> i added the (hand drawing) of the polyhedron i try to achieve, the >>>>> pre-render is perfectly fine, but as soon as i compile it it says: >>>>> >>>>> ERROR: The given mesh is not closed! Unable to convert to >>>>> CGAL_Nef_Polyhedron. >>>>> Geometries in cache: 4 >>>>> >>>>> so i am puzzled, first of all there should be only 1 geometry, and >>>>> that error message is not really help full, since i don't know how to find >>>>> out what's going wrong? and i would like to know how to debug something >>>>> like that? >>>>> >>>>> if we consider the failing thing: >>>>> difference() >>>>> { >>>>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>>>> color("red") >>>>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>>>> renfort=false); >>>>> } >>>>> >>>>> each of the subelements compiles fine, the upper box is bigger than >>>>> the diff i try to achieve, but as soon as i do the diff some spourious >>>>> polygon appears in the preview at the back of the thing, and it doesn't >>>>> compile anymore.... invalidating the standing fin, solves it, and i could >>>>> use a cube to emulate it (as done in halter2), but that's unsatisfactory :D >>>>> i would really like to know why or how this goes wrong and how to find out >>>>> what is going wrong (in order to stop bothering all of you)? >>>>> >>>>> thanks in advance for any insight! >>>>> >>>>> -- >>>>> ciao >>>>> Bruno >>>>> >>>>> =========================================== >>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>> <http://bboett.free.fr> >>>>> http://aikido.zorn.free.fr >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> >>> -- >>> ciao >>> Bruno >>> >>> =========================================== >>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>> <http://bboett.free.fr> >>> http://aikido.zorn.free.fr >>> _______________________________________________ >>> 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 >> > > > -- > ciao > Bruno > > =========================================== > http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, > <http://bboett.free.fr> > http://aikido.zorn.free.fr > -- ciao Bruno =========================================== http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
NH
nop head
Thu, Jan 20, 2022 12:03 PM

That gives me this, which is clearly broken, even in the preview. Is that
what you see?

[image: image.png]

On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher bboett@gmail.com wrote:

ah yes... didn't want something failing in the git, was late last night....
please also comment line 6 and uncomment line 5.....

Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher <
bboett@gmail.com>:

ah yeah.....
in the git there's the "working" version, please set on line 26
renfort=true!
ciao
Bruno

Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head nop.head@gmail.com:

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com wrote:

Yes did that, can't find any purple face nor any hole, but then my
vision is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com

:

Have you tried View / Thrown Together mode and looked for purple
faces? You should not be able to see any purple on a closed polygon. If it
has a hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com
wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine,
and i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and
that error message is not really help full, since i don't know how to find
out what's going wrong? and i would like to know how to debug something
like that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than
the diff i try to achieve, but as soon as i do the diff some spourious
polygon appears in the preview at the back of the thing, and it doesn't
compile anymore.... invalidating the standing fin, solves it, and i could
use a cube to emulate it (as done in halter2), but that's unsatisfactory :D
i would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

That gives me this, which is clearly broken, even in the preview. Is that what you see? [image: image.png] On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher <bboett@gmail.com> wrote: > ah yes... didn't want something failing in the git, was late last night.... > please also comment line 6 and uncomment line 5..... > > Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher < > bboett@gmail.com>: > >> ah yeah..... >> in the git there's the "working" version, please set on line 26 >> renfort=true! >> ciao >> Bruno >> >> Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com>: >> >>> I don't get any errors. I get >>> >>> Top level object is a 3D object: >>> Simple: yes >>> Vertices: 118 >>> Halfedges: 358 >>> Edges: 179 >>> Halffacets: 132 >>> Facets: 66 >>> Volumes: 3 >>> >>> [image: image.png] >>> >>> On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> wrote: >>> >>>> Yes did that, can't find any purple face nor any hole, but then my >>>> vision is not the best... >>>> >>>> Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <nop.head@gmail.com >>>> >: >>>> >>>>> Have you tried View / Thrown Together mode and looked for purple >>>>> faces? You should not be able to see any purple on a closed polygon. If it >>>>> has a hole, or any faces are inside out, you will see purple. >>>>> >>>>> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> >>>>> wrote: >>>>> >>>>>> Hello! >>>>>> >>>>>> thought i should try a smart solution, turns out to be a time hog :D >>>>>> a trivial problem, i need a new capsule holder for my coffeemachine, >>>>>> and i was tinkering around on how to achieve this.... >>>>>> >>>>>> code looks to big to be posted, so i put it up on git: >>>>>> https://github.com/nohkumado/openscad-nespresso >>>>>> >>>>>> i added the (hand drawing) of the polyhedron i try to achieve, the >>>>>> pre-render is perfectly fine, but as soon as i compile it it says: >>>>>> >>>>>> ERROR: The given mesh is not closed! Unable to convert to >>>>>> CGAL_Nef_Polyhedron. >>>>>> Geometries in cache: 4 >>>>>> >>>>>> so i am puzzled, first of all there should be only 1 geometry, and >>>>>> that error message is not really help full, since i don't know how to find >>>>>> out what's going wrong? and i would like to know how to debug something >>>>>> like that? >>>>>> >>>>>> if we consider the failing thing: >>>>>> difference() >>>>>> { >>>>>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>>>>> color("red") >>>>>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>>>>> renfort=false); >>>>>> } >>>>>> >>>>>> each of the subelements compiles fine, the upper box is bigger than >>>>>> the diff i try to achieve, but as soon as i do the diff some spourious >>>>>> polygon appears in the preview at the back of the thing, and it doesn't >>>>>> compile anymore.... invalidating the standing fin, solves it, and i could >>>>>> use a cube to emulate it (as done in halter2), but that's unsatisfactory :D >>>>>> i would really like to know why or how this goes wrong and how to find out >>>>>> what is going wrong (in order to stop bothering all of you)? >>>>>> >>>>>> thanks in advance for any insight! >>>>>> >>>>>> -- >>>>>> ciao >>>>>> Bruno >>>>>> >>>>>> =========================================== >>>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>>> <http://bboett.free.fr> >>>>>> http://aikido.zorn.free.fr >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>> >>>> >>>> -- >>>> ciao >>>> Bruno >>>> >>>> =========================================== >>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>> <http://bboett.free.fr> >>>> http://aikido.zorn.free.fr >>>> _______________________________________________ >>>> 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 >>> >> >> >> -- >> ciao >> Bruno >> >> =========================================== >> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >> <http://bboett.free.fr> >> http://aikido.zorn.free.fr >> > > > -- > ciao > Bruno > > =========================================== > http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, > <http://bboett.free.fr> > http://aikido.zorn.free.fr > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
NH
nop head
Thu, Jan 20, 2022 12:10 PM

My best guess is there are coincident faces in the triangle at the top when
you subtract the two versions of the polyhedron.

On Thu, 20 Jan 2022 at 12:03, nop head nop.head@gmail.com wrote:

That gives me this, which is clearly broken, even in the preview. Is that
what you see?

[image: image.png]

On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher bboett@gmail.com wrote:

ah yes... didn't want something failing in the git, was late last
night....
please also comment line 6 and uncomment line 5.....

Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher <
bboett@gmail.com>:

ah yeah.....
in the git there's the "working" version, please set on line 26
renfort=true!
ciao
Bruno

Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com

:

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com wrote:

Yes did that, can't find any purple face nor any hole, but then my
vision is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <
nop.head@gmail.com>:

Have you tried View / Thrown Together mode and looked for purple
faces? You should not be able to see any purple on a closed polygon. If it
has a hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com
wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my coffeemachine,
and i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and
that error message is not really help full, since i don't know how to find
out what's going wrong? and i would like to know how to debug something
like that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than
the diff i try to achieve, but as soon as i do the diff some spourious
polygon appears in the preview at the back of the thing, and it doesn't
compile anymore.... invalidating the standing fin, solves it, and i could
use a cube to emulate it (as done in halter2), but that's unsatisfactory :D
i would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

My best guess is there are coincident faces in the triangle at the top when you subtract the two versions of the polyhedron. On Thu, 20 Jan 2022 at 12:03, nop head <nop.head@gmail.com> wrote: > That gives me this, which is clearly broken, even in the preview. Is that > what you see? > > [image: image.png] > > On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher <bboett@gmail.com> wrote: > >> ah yes... didn't want something failing in the git, was late last >> night.... >> please also comment line 6 and uncomment line 5..... >> >> Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher < >> bboett@gmail.com>: >> >>> ah yeah..... >>> in the git there's the "working" version, please set on line 26 >>> renfort=true! >>> ciao >>> Bruno >>> >>> Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com >>> >: >>> >>>> I don't get any errors. I get >>>> >>>> Top level object is a 3D object: >>>> Simple: yes >>>> Vertices: 118 >>>> Halfedges: 358 >>>> Edges: 179 >>>> Halffacets: 132 >>>> Facets: 66 >>>> Volumes: 3 >>>> >>>> [image: image.png] >>>> >>>> On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> wrote: >>>> >>>>> Yes did that, can't find any purple face nor any hole, but then my >>>>> vision is not the best... >>>>> >>>>> Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head < >>>>> nop.head@gmail.com>: >>>>> >>>>>> Have you tried View / Thrown Together mode and looked for purple >>>>>> faces? You should not be able to see any purple on a closed polygon. If it >>>>>> has a hole, or any faces are inside out, you will see purple. >>>>>> >>>>>> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Hello! >>>>>>> >>>>>>> thought i should try a smart solution, turns out to be a time hog :D >>>>>>> a trivial problem, i need a new capsule holder for my coffeemachine, >>>>>>> and i was tinkering around on how to achieve this.... >>>>>>> >>>>>>> code looks to big to be posted, so i put it up on git: >>>>>>> https://github.com/nohkumado/openscad-nespresso >>>>>>> >>>>>>> i added the (hand drawing) of the polyhedron i try to achieve, the >>>>>>> pre-render is perfectly fine, but as soon as i compile it it says: >>>>>>> >>>>>>> ERROR: The given mesh is not closed! Unable to convert to >>>>>>> CGAL_Nef_Polyhedron. >>>>>>> Geometries in cache: 4 >>>>>>> >>>>>>> so i am puzzled, first of all there should be only 1 geometry, and >>>>>>> that error message is not really help full, since i don't know how to find >>>>>>> out what's going wrong? and i would like to know how to debug something >>>>>>> like that? >>>>>>> >>>>>>> if we consider the failing thing: >>>>>>> difference() >>>>>>> { >>>>>>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>>>>>> color("red") >>>>>>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>>>>>> renfort=false); >>>>>>> } >>>>>>> >>>>>>> each of the subelements compiles fine, the upper box is bigger than >>>>>>> the diff i try to achieve, but as soon as i do the diff some spourious >>>>>>> polygon appears in the preview at the back of the thing, and it doesn't >>>>>>> compile anymore.... invalidating the standing fin, solves it, and i could >>>>>>> use a cube to emulate it (as done in halter2), but that's unsatisfactory :D >>>>>>> i would really like to know why or how this goes wrong and how to find out >>>>>>> what is going wrong (in order to stop bothering all of you)? >>>>>>> >>>>>>> thanks in advance for any insight! >>>>>>> >>>>>>> -- >>>>>>> ciao >>>>>>> Bruno >>>>>>> >>>>>>> =========================================== >>>>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>>>> <http://bboett.free.fr> >>>>>>> http://aikido.zorn.free.fr >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>> >>>>> >>>>> -- >>>>> ciao >>>>> Bruno >>>>> >>>>> =========================================== >>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>> <http://bboett.free.fr> >>>>> http://aikido.zorn.free.fr >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> >>> -- >>> ciao >>> Bruno >>> >>> =========================================== >>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>> <http://bboett.free.fr> >>> http://aikido.zorn.free.fr >>> >> >> >> -- >> ciao >> Bruno >> >> =========================================== >> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >> <http://bboett.free.fr> >> http://aikido.zorn.free.fr >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
NH
nop head
Thu, Jan 20, 2022 12:21 PM

Or maybe not. This transparent view shows there are no shared faces.

[image: image.png]

On Thu, 20 Jan 2022 at 12:10, nop head nop.head@gmail.com wrote:

My best guess is there are coincident faces in the triangle at the top
when you subtract the two versions of the polyhedron.

On Thu, 20 Jan 2022 at 12:03, nop head nop.head@gmail.com wrote:

That gives me this, which is clearly broken, even in the preview. Is that
what you see?

[image: image.png]

On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher bboett@gmail.com wrote:

ah yes... didn't want something failing in the git, was late last
night....
please also comment line 6 and uncomment line 5.....

Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher <
bboett@gmail.com>:

ah yeah.....
in the git there's the "working" version, please set on line 26
renfort=true!
ciao
Bruno

Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com

:

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com
wrote:

Yes did that, can't find any purple face nor any hole, but then my
vision is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <
nop.head@gmail.com>:

Have you tried View / Thrown Together mode and looked for purple
faces? You should not be able to see any purple on a closed polygon. If it
has a hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com
wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog :D
a trivial problem, i need a new capsule holder for my
coffeemachine, and i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and
that error message is not really help full, since i don't know how to find
out what's going wrong? and i would like to know how to debug something
like that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger than
the diff i try to achieve, but as soon as i do the diff some spourious
polygon appears in the preview at the back of the thing, and it doesn't
compile anymore.... invalidating the standing fin, solves it, and i could
use a cube to emulate it (as done in halter2), but that's unsatisfactory :D
i would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

Or maybe not. This transparent view shows there are no shared faces. [image: image.png] On Thu, 20 Jan 2022 at 12:10, nop head <nop.head@gmail.com> wrote: > My best guess is there are coincident faces in the triangle at the top > when you subtract the two versions of the polyhedron. > > On Thu, 20 Jan 2022 at 12:03, nop head <nop.head@gmail.com> wrote: > >> That gives me this, which is clearly broken, even in the preview. Is that >> what you see? >> >> [image: image.png] >> >> On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher <bboett@gmail.com> wrote: >> >>> ah yes... didn't want something failing in the git, was late last >>> night.... >>> please also comment line 6 and uncomment line 5..... >>> >>> Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher < >>> bboett@gmail.com>: >>> >>>> ah yeah..... >>>> in the git there's the "working" version, please set on line 26 >>>> renfort=true! >>>> ciao >>>> Bruno >>>> >>>> Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <nop.head@gmail.com >>>> >: >>>> >>>>> I don't get any errors. I get >>>>> >>>>> Top level object is a 3D object: >>>>> Simple: yes >>>>> Vertices: 118 >>>>> Halfedges: 358 >>>>> Edges: 179 >>>>> Halffacets: 132 >>>>> Facets: 66 >>>>> Volumes: 3 >>>>> >>>>> [image: image.png] >>>>> >>>>> On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> >>>>> wrote: >>>>> >>>>>> Yes did that, can't find any purple face nor any hole, but then my >>>>>> vision is not the best... >>>>>> >>>>>> Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head < >>>>>> nop.head@gmail.com>: >>>>>> >>>>>>> Have you tried View / Thrown Together mode and looked for purple >>>>>>> faces? You should not be able to see any purple on a closed polygon. If it >>>>>>> has a hole, or any faces are inside out, you will see purple. >>>>>>> >>>>>>> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Hello! >>>>>>>> >>>>>>>> thought i should try a smart solution, turns out to be a time hog :D >>>>>>>> a trivial problem, i need a new capsule holder for my >>>>>>>> coffeemachine, and i was tinkering around on how to achieve this.... >>>>>>>> >>>>>>>> code looks to big to be posted, so i put it up on git: >>>>>>>> https://github.com/nohkumado/openscad-nespresso >>>>>>>> >>>>>>>> i added the (hand drawing) of the polyhedron i try to achieve, the >>>>>>>> pre-render is perfectly fine, but as soon as i compile it it says: >>>>>>>> >>>>>>>> ERROR: The given mesh is not closed! Unable to convert to >>>>>>>> CGAL_Nef_Polyhedron. >>>>>>>> Geometries in cache: 4 >>>>>>>> >>>>>>>> so i am puzzled, first of all there should be only 1 geometry, and >>>>>>>> that error message is not really help full, since i don't know how to find >>>>>>>> out what's going wrong? and i would like to know how to debug something >>>>>>>> like that? >>>>>>>> >>>>>>>> if we consider the failing thing: >>>>>>>> difference() >>>>>>>> { >>>>>>>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>>>>>>> color("red") >>>>>>>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>>>>>>> renfort=false); >>>>>>>> } >>>>>>>> >>>>>>>> each of the subelements compiles fine, the upper box is bigger than >>>>>>>> the diff i try to achieve, but as soon as i do the diff some spourious >>>>>>>> polygon appears in the preview at the back of the thing, and it doesn't >>>>>>>> compile anymore.... invalidating the standing fin, solves it, and i could >>>>>>>> use a cube to emulate it (as done in halter2), but that's unsatisfactory :D >>>>>>>> i would really like to know why or how this goes wrong and how to find out >>>>>>>> what is going wrong (in order to stop bothering all of you)? >>>>>>>> >>>>>>>> thanks in advance for any insight! >>>>>>>> >>>>>>>> -- >>>>>>>> ciao >>>>>>>> Bruno >>>>>>>> >>>>>>>> =========================================== >>>>>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>>>>> <http://bboett.free.fr> >>>>>>>> http://aikido.zorn.free.fr >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> ciao >>>>>> Bruno >>>>>> >>>>>> =========================================== >>>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>>> <http://bboett.free.fr> >>>>>> http://aikido.zorn.free.fr >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>> >>>> >>>> -- >>>> ciao >>>> Bruno >>>> >>>> =========================================== >>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>> <http://bboett.free.fr> >>>> http://aikido.zorn.free.fr >>>> >>> >>> >>> -- >>> ciao >>> Bruno >>> >>> =========================================== >>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>> <http://bboett.free.fr> >>> http://aikido.zorn.free.fr >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>
NH
nop head
Thu, Jan 20, 2022 12:34 PM

Does the triangular vane on the top share edges with the face it sits on?

On Thu, 20 Jan 2022 at 12:21, nop head nop.head@gmail.com wrote:

Or maybe not. This transparent view shows there are no shared faces.

[image: image.png]

On Thu, 20 Jan 2022 at 12:10, nop head nop.head@gmail.com wrote:

My best guess is there are coincident faces in the triangle at the top
when you subtract the two versions of the polyhedron.

On Thu, 20 Jan 2022 at 12:03, nop head nop.head@gmail.com wrote:

That gives me this, which is clearly broken, even in the preview. Is
that what you see?

[image: image.png]

On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher bboett@gmail.com wrote:

ah yes... didn't want something failing in the git, was late last
night....
please also comment line 6 and uncomment line 5.....

Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher <
bboett@gmail.com>:

ah yeah.....
in the git there's the "working" version, please set on line 26
renfort=true!
ciao
Bruno

Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head <
nop.head@gmail.com>:

I don't get any errors. I get

Top level object is a 3D object:
Simple: yes
Vertices: 118
Halfedges: 358
Edges: 179
Halffacets: 132
Facets: 66
Volumes: 3

[image: image.png]

On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher bboett@gmail.com
wrote:

Yes did that, can't find any purple face nor any hole, but then my
vision is not the best...

Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head <
nop.head@gmail.com>:

Have you tried View / Thrown Together mode and looked for purple
faces? You should not be able to see any purple on a closed polygon. If it
has a hole, or any faces are inside out, you will see purple.

On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher bboett@gmail.com
wrote:

Hello!

thought i should try a smart solution, turns out to be a time hog
:D
a trivial problem, i need a new capsule holder for my
coffeemachine, and i was tinkering around on how to achieve this....

code looks to big to be posted, so i put it up on git:
https://github.com/nohkumado/openscad-nespresso

i added the (hand drawing) of the polyhedron i try to achieve, the
pre-render is perfectly fine, but as soon as i compile it it says:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.
Geometries in cache: 4

so i am puzzled, first of all there should be only 1 geometry, and
that error message is not really help full, since i don't know how to find
out what's going wrong? and i would like to know how to debug something
like that?

if we consider the failing thing:
difference()
{
schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50);
color("red")
translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0,
renfort=false);
}

each of the subelements compiles fine, the upper box is bigger
than the diff i try to achieve, but as soon as i do the diff some spourious
polygon appears in the preview at the back of the thing, and it doesn't
compile anymore.... invalidating the standing fin, solves it, and i could
use a cube to emulate it (as done in halter2), but that's unsatisfactory :D
i would really like to know why or how this goes wrong and how to find out
what is going wrong (in order to stop bothering all of you)?

thanks in advance for any insight!

--
ciao
Bruno

---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr


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

Does the triangular vane on the top share edges with the face it sits on? On Thu, 20 Jan 2022 at 12:21, nop head <nop.head@gmail.com> wrote: > Or maybe not. This transparent view shows there are no shared faces. > > [image: image.png] > > On Thu, 20 Jan 2022 at 12:10, nop head <nop.head@gmail.com> wrote: > >> My best guess is there are coincident faces in the triangle at the top >> when you subtract the two versions of the polyhedron. >> >> On Thu, 20 Jan 2022 at 12:03, nop head <nop.head@gmail.com> wrote: >> >>> That gives me this, which is clearly broken, even in the preview. Is >>> that what you see? >>> >>> [image: image.png] >>> >>> On Thu, 20 Jan 2022 at 12:00, Bruno Boettcher <bboett@gmail.com> wrote: >>> >>>> ah yes... didn't want something failing in the git, was late last >>>> night.... >>>> please also comment line 6 and uncomment line 5..... >>>> >>>> Am Do., 20. Jan. 2022 um 12:58 Uhr schrieb Bruno Boettcher < >>>> bboett@gmail.com>: >>>> >>>>> ah yeah..... >>>>> in the git there's the "working" version, please set on line 26 >>>>> renfort=true! >>>>> ciao >>>>> Bruno >>>>> >>>>> Am Do., 20. Jan. 2022 um 12:56 Uhr schrieb nop head < >>>>> nop.head@gmail.com>: >>>>> >>>>>> I don't get any errors. I get >>>>>> >>>>>> Top level object is a 3D object: >>>>>> Simple: yes >>>>>> Vertices: 118 >>>>>> Halfedges: 358 >>>>>> Edges: 179 >>>>>> Halffacets: 132 >>>>>> Facets: 66 >>>>>> Volumes: 3 >>>>>> >>>>>> [image: image.png] >>>>>> >>>>>> On Thu, 20 Jan 2022 at 11:47, Bruno Boettcher <bboett@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Yes did that, can't find any purple face nor any hole, but then my >>>>>>> vision is not the best... >>>>>>> >>>>>>> Am Do., 20. Jan. 2022 um 12:44 Uhr schrieb nop head < >>>>>>> nop.head@gmail.com>: >>>>>>> >>>>>>>> Have you tried View / Thrown Together mode and looked for purple >>>>>>>> faces? You should not be able to see any purple on a closed polygon. If it >>>>>>>> has a hole, or any faces are inside out, you will see purple. >>>>>>>> >>>>>>>> On Thu, 20 Jan 2022 at 11:40, Bruno Boettcher <bboett@gmail.com> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hello! >>>>>>>>> >>>>>>>>> thought i should try a smart solution, turns out to be a time hog >>>>>>>>> :D >>>>>>>>> a trivial problem, i need a new capsule holder for my >>>>>>>>> coffeemachine, and i was tinkering around on how to achieve this.... >>>>>>>>> >>>>>>>>> code looks to big to be posted, so i put it up on git: >>>>>>>>> https://github.com/nohkumado/openscad-nespresso >>>>>>>>> >>>>>>>>> i added the (hand drawing) of the polyhedron i try to achieve, the >>>>>>>>> pre-render is perfectly fine, but as soon as i compile it it says: >>>>>>>>> >>>>>>>>> ERROR: The given mesh is not closed! Unable to convert to >>>>>>>>> CGAL_Nef_Polyhedron. >>>>>>>>> Geometries in cache: 4 >>>>>>>>> >>>>>>>>> so i am puzzled, first of all there should be only 1 geometry, and >>>>>>>>> that error message is not really help full, since i don't know how to find >>>>>>>>> out what's going wrong? and i would like to know how to debug something >>>>>>>>> like that? >>>>>>>>> >>>>>>>>> if we consider the failing thing: >>>>>>>>> difference() >>>>>>>>> { >>>>>>>>> schachtel(typ=typ, xcenter = true, wd= wd, renfort=true, h=50); >>>>>>>>> color("red") >>>>>>>>> translate([0,0,wd]) schachtel(typ=typ, xcenter = true, wd= 0, >>>>>>>>> renfort=false); >>>>>>>>> } >>>>>>>>> >>>>>>>>> each of the subelements compiles fine, the upper box is bigger >>>>>>>>> than the diff i try to achieve, but as soon as i do the diff some spourious >>>>>>>>> polygon appears in the preview at the back of the thing, and it doesn't >>>>>>>>> compile anymore.... invalidating the standing fin, solves it, and i could >>>>>>>>> use a cube to emulate it (as done in halter2), but that's unsatisfactory :D >>>>>>>>> i would really like to know why or how this goes wrong and how to find out >>>>>>>>> what is going wrong (in order to stop bothering all of you)? >>>>>>>>> >>>>>>>>> thanks in advance for any insight! >>>>>>>>> >>>>>>>>> -- >>>>>>>>> ciao >>>>>>>>> Bruno >>>>>>>>> >>>>>>>>> =========================================== >>>>>>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>>>>>> <http://bboett.free.fr> >>>>>>>>> http://aikido.zorn.free.fr >>>>>>>>> _______________________________________________ >>>>>>>>> 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 >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> ciao >>>>>>> Bruno >>>>>>> >>>>>>> =========================================== >>>>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>>>> <http://bboett.free.fr> >>>>>>> http://aikido.zorn.free.fr >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>> >>>>> >>>>> -- >>>>> ciao >>>>> Bruno >>>>> >>>>> =========================================== >>>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>>> <http://bboett.free.fr> >>>>> http://aikido.zorn.free.fr >>>>> >>>> >>>> >>>> -- >>>> ciao >>>> Bruno >>>> >>>> =========================================== >>>> http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, >>>> <http://bboett.free.fr> >>>> http://aikido.zorn.free.fr >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>>