discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

The given mesh is not closed

J
jon
Sun, Oct 23, 2022 4:10 PM

Works fine with F5 but not with F6.  Seems like a simple difference() to
me (obscured by quite a few modules).  Any thoughts?  See attached
Error.scad.

Works fine with F5 but not with F6.  Seems like a simple difference() to me (obscured by quite a few modules).  Any thoughts?  See attached Error.scad.
J
jon
Sun, Oct 23, 2022 4:12 PM

Note that the error appears the first time you press F6, but not
thereafter.  If you flush the cache, you get to see the error message again

On 10/23/2022 12:10 PM, jon wrote:

Works fine with F5 but not with F6.  Seems like a simple difference()
to me (obscured by quite a few modules).  Any thoughts?  See attached
Error.scad.


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

Note that the error appears the first time you press F6, but not thereafter.  If you flush the cache, you get to see the error message again On 10/23/2022 12:10 PM, jon wrote: > Works fine with F5 but not with F6.  Seems like a simple difference() > to me (obscured by quite a few modules).  Any thoughts?  See attached > Error.scad. > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Sun, Oct 23, 2022 6:03 PM

Maybe the BigShape2D(di) polygon should be made with the points list rather
than matching various shapes.

On Sun, 23 Oct 2022 at 21:43, jon jon@jonbondy.com wrote:

Note that the error appears the first time you press F6, but not
thereafter.  If you flush the cache, you get to see the error message again

On 10/23/2022 12:10 PM, jon wrote:

Works fine with F5 but not with F6.  Seems like a simple difference()
to me (obscured by quite a few modules).  Any thoughts?  See attached
Error.scad.


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

Maybe the BigShape2D(di) polygon should be made with the points list rather than matching various shapes. On Sun, 23 Oct 2022 at 21:43, jon <jon@jonbondy.com> wrote: > Note that the error appears the first time you press F6, but not > thereafter. If you flush the cache, you get to see the error message again > > On 10/23/2022 12:10 PM, jon wrote: > > Works fine with F5 but not with F6. Seems like a simple difference() > > to me (obscured by quite a few modules). Any thoughts? See attached > > Error.scad. > > > > > > > > _______________________________________________ > > 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 >
JB
Jordan Brown
Sun, Oct 23, 2022 6:30 PM

The first step in such a thing is to figure out exactly what's causing
the problem.  If you think it's a bug, continue doing that until you get
to a program where removing anything makes the problem go away.

Here's a minimal program that demonstrates the problem:

rotate_extrude() {
    square([3, 1]);
	translate([2, 1])
		square([1, 1]);
	square([1, 2]);
}
translate([-100,0,0]) cube();

This appears to be a bug in the 2D subsystem that is then leading to
CGAL problems.

Looking at just the 2D object, with F6, is illuminating:

square([3, 1]);
translate([2, 1])
    square([1, 1]);
square([1, 2]);

Notice that the top-right square, the second one created, is not
connected to the others.  Strangely, removing the left-hand one causes
the right-hand one to be connected.

A workaround is to make the right-hand square start at Y=0 and be 8 tall
instead of 6.

The first step in such a thing is to figure out exactly what's causing the problem.  If you think it's a bug, continue doing that until you get to a program where removing anything makes the problem go away. Here's a minimal program that demonstrates the problem: rotate_extrude() { square([3, 1]); translate([2, 1]) square([1, 1]); square([1, 2]); } translate([-100,0,0]) cube(); This appears to be a bug in the 2D subsystem that is then leading to CGAL problems. Looking at just the 2D object, with F6, is illuminating: square([3, 1]); translate([2, 1]) square([1, 1]); square([1, 2]); Notice that the top-right square, the second one created, is not connected to the others.  Strangely, removing the left-hand one causes the right-hand one to be connected. A workaround is to make the right-hand square start at Y=0 and be 8 tall instead of 6.
NH
nop head
Sun, Oct 23, 2022 8:30 PM

Yes I have come across a few bugs in 2D operations like that. Better to
make it with a difference.

On Sun, 23 Oct 2022 at 19:30, Jordan Brown openscad@jordan.maileater.net
wrote:

The first step in such a thing is to figure out exactly what's causing the
problem.  If you think it's a bug, continue doing that until you get to a
program where removing anything makes the problem go away.

Here's a minimal program that demonstrates the problem:

rotate_extrude() {
square([3, 1]);
translate([2, 1])
square([1, 1]);
square([1, 2]);
}
translate([-100,0,0]) cube();

This appears to be a bug in the 2D subsystem that is then leading to CGAL
problems.

Looking at just the 2D object, with F6, is illuminating:

square([3, 1]);
translate([2, 1])
square([1, 1]);
square([1, 2]);

Notice that the top-right square, the second one created, is not connected
to the others.  Strangely, removing the left-hand one causes the right-hand
one to be connected.

A workaround is to make the right-hand square start at Y=0 and be 8 tall
instead of 6.


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

Yes I have come across a few bugs in 2D operations like that. Better to make it with a difference. On Sun, 23 Oct 2022 at 19:30, Jordan Brown <openscad@jordan.maileater.net> wrote: > The first step in such a thing is to figure out exactly what's causing the > problem. If you think it's a bug, continue doing that until you get to a > program where removing anything makes the problem go away. > > Here's a minimal program that demonstrates the problem: > > rotate_extrude() { > square([3, 1]); > translate([2, 1]) > square([1, 1]); > square([1, 2]); > } > translate([-100,0,0]) cube(); > > This appears to be a bug in the 2D subsystem that is then leading to CGAL > problems. > > Looking at just the 2D object, with F6, is illuminating: > > square([3, 1]); > translate([2, 1]) > square([1, 1]); > square([1, 2]); > > Notice that the top-right square, the second one created, is not connected > to the others. Strangely, removing the left-hand one causes the right-hand > one to be connected. > > A workaround is to make the right-hand square start at Y=0 and be 8 tall > instead of 6. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Mon, Oct 24, 2022 12:42 AM

this one works perfectly

On Sun, 23 Oct 2022 at 23:33, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Maybe the BigShape2D(di) polygon should be made with the points list
rather than matching various shapes.

On Sun, 23 Oct 2022 at 21:43, jon jon@jonbondy.com wrote:

Note that the error appears the first time you press F6, but not
thereafter.  If you flush the cache, you get to see the error message
again

On 10/23/2022 12:10 PM, jon wrote:

Works fine with F5 but not with F6.  Seems like a simple difference()
to me (obscured by quite a few modules).  Any thoughts?  See attached
Error.scad.


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

this one works perfectly On Sun, 23 Oct 2022 at 23:33, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > Maybe the BigShape2D(di) polygon should be made with the points list > rather than matching various shapes. > > On Sun, 23 Oct 2022 at 21:43, jon <jon@jonbondy.com> wrote: > >> Note that the error appears the first time you press F6, but not >> thereafter. If you flush the cache, you get to see the error message >> again >> >> On 10/23/2022 12:10 PM, jon wrote: >> > Works fine with F5 but not with F6. Seems like a simple difference() >> > to me (obscured by quite a few modules). Any thoughts? See attached >> > Error.scad. >> > >> > >> > >> > _______________________________________________ >> > 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 >> >