discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Projection problem

J
jon
Thu, Dec 30, 2021 1:39 PM

See the attached test program.  Note that the outline is incorrect on
the left, but not on the right.  Any idea what is going on?

Thanks!

Jon

See the attached test program.  Note that the outline is incorrect on the left, but not on the right.  Any idea what is going on? Thanks! Jon
L
larry
Thu, Dec 30, 2021 2:59 PM

On Thu, 2021-12-30 at 08:39 -0500, jon wrote:

See the attached test program.  Note that the outline is incorrect
on
the left, but not on the right.  Any idea what is going on?

Not sure what you want it to look like, but I wonder what the square in
module S2() is supposed to be doing.

module S2()
difference() {
projection(cut = true)
translate([0, 0, 10-1])
TopStrutConnector();
//translate([-5, -100 + tst + tst + th])
//square(100);
};

On Thu, 2021-12-30 at 08:39 -0500, jon wrote: > See the attached test program. Note that the outline is incorrect > on > the left, but not on the right. Any idea what is going on? Not sure what you want it to look like, but I wonder what the square in module S2() is supposed to be doing. module S2() difference() { projection(cut = true) translate([0, 0, 10-1]) TopStrutConnector(); //translate([-5, -100 + tst + tst + th]) //square(100); };
J
jon
Thu, Dec 30, 2021 3:07 PM

Larry:

Thanks for seeing the obvious that I could not see after spending days
on this code (what I uploaded is just a small part of a larger
project).  You found my mistake.

Thank you!

Jon

On 12/30/2021 9:59 AM, larry wrote:

On Thu, 2021-12-30 at 08:39 -0500, jon wrote:

See the attached test program.  Note that the outline is incorrect
on
the left, but not on the right.  Any idea what is going on?
Not sure what you want it to look like, but I wonder what the square in
module S2() is supposed to be doing.

module S2()
difference() {
projection(cut = true)
translate([0, 0, 10-1])
TopStrutConnector();
//translate([-5, -100 + tst + tst + th])
//square(100);
};


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

Larry: Thanks for seeing the obvious that I could not see after spending days on this code (what I uploaded is just a small part of a larger project).  You found my mistake. Thank you! Jon On 12/30/2021 9:59 AM, larry wrote: > On Thu, 2021-12-30 at 08:39 -0500, jon wrote: >> See the attached test program. Note that the outline is incorrect >> on >> the left, but not on the right. Any idea what is going on? > Not sure what you want it to look like, but I wonder what the square in > module S2() is supposed to be doing. > > > module S2() > difference() { > projection(cut = true) > translate([0, 0, 10-1]) > TopStrutConnector(); > //translate([-5, -100 + tst + tst + th]) > //square(100); > }; > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
NH
nop head
Thu, Dec 30, 2021 6:04 PM

Not sure what you mean. The left has a square subtracted from by line 27
but the right doesn't.

On Thu, 30 Dec 2021 at 13:40, jon jon@jonbondy.com wrote:

See the attached test program.  Note that the outline is incorrect on
the left, but not on the right.  Any idea what is going on?

Thanks!

Jon


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

Not sure what you mean. The left has a square subtracted from by line 27 but the right doesn't. On Thu, 30 Dec 2021 at 13:40, jon <jon@jonbondy.com> wrote: > See the attached test program. Note that the outline is incorrect on > the left, but not on the right. Any idea what is going on? > > Thanks! > > Jon > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
DM
Douglas Miller
Thu, Dec 30, 2021 8:12 PM

While it may be "incorrect" in the sense of "not what you intended",
it's certainly doing exactly what you told it to do.

Put a "#" character at the beginning of this line translate([-5, -100 +
tst + tst + th])
in module S2 and you should readily see why it's doing
what it's doing.

On 12/30/2021 8:39 AM, jon wrote:

See the attached test program.  Note that the outline is incorrect on
the left, but not on the right.  Any idea what is going on?

Thanks!

Jon

While it may be "incorrect" in the sense of "not what you intended", it's certainly doing exactly what you told it to do. Put a "#" character at the beginning of this line *translate([-5, -100 + tst + tst + th])* in module S2 and you should readily see why it's doing what it's doing. On 12/30/2021 8:39 AM, jon wrote: > See the attached test program.  Note that the outline is incorrect on > the left, but not on the right.  Any idea what is going on? > > Thanks! > > Jon