Hello IHC,
I thought from the code that the center to center distance would be the amount moved FWD but it appears to be that + the outside radius.
Or am I looking at this at the wrong angle?
include <BOSL2/std.scad> //or screws or threading
$fn=24;
Inch=25.4;
T = 1.6;
W = 42;
H = 9.5;
L = 100;
OR = H/2+T; // outside radius
cuboid([L,W-2*OR,T],rounding=T/2,edges=FRONT+BACK,anchor=TOP);
tube(l=L,wall=T,or=OR);
fwd(W/2)tube(l=L,wall=T,or=OR);
--
Best regards,
Bob mailto:roosbob@wybatap.com
I don't understand the question. You set W to 42 and then moved W/2
forward so....that's how much it moves forward. I don't see anything
surprising here. The cuboid is reduced in size by OR...did you forget
about that? The model might be simpler using attachments (position(),
align() or attach()), depending on what exactly you're trying to do.
On Sat, Feb 15, 2025 at 10:28 AM Bob Roos via Discuss <
discuss@lists.openscad.org> wrote:
Hello IHC,
I thought from the code that the center to center distance would be the
amount moved FWD but it appears to be that + the outside radius.
Or am I looking at this at the wrong angle?
include <BOSL2/std.scad> //or screws or threading
$fn=24;
Inch=25.4;
T = 1.6;
W = 42;
H = 9.5;
L = 100;
OR = H/2+T; // outside radius
cuboid([L,W-2*OR,T],rounding=T/2,edges=FRONT+BACK,anchor=TOP);
tube(l=L,wall=T,or=OR);
fwd(W/2)tube(l=L,wall=T,or=OR);
--
Best regards,
Bob mailto:roosbob@wybatap.com
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Hi Adrian,
Yes, I was thinking the cuboid was W wide. So it was a wrong angle look on my part. Thanks for clarifying that for me.
I agree that I need to learn attachments. Efforts in the past have led to confusion for me. But that is the past. I will practice on this.
thank you
Saturday, February 15, 2025, 10:40:00 AM, you wrote:
I don't understand the question. You set W to 42 and then moved W/2 forward so....that's how much it moves forward. I don't see anything surprising here. The cuboid is reduced in size by OR...did you forget about that? The model might be simpler using attachments (position(), align() or attach()), depending on what exactly you're trying to do.
On Sat, Feb 15, 2025 at 10:28 AM Bob Roos via Discuss discuss@lists.openscad.org wrote:
Hello IHC,
I thought from the code that the center to center distance would be the amount moved FWD but it appears to be that + the outside radius.
Or am I looking at this at the wrong angle?
include <BOSL2/std.scad> //or screws or threading
$fn=24;
Inch=25.4;
T = 1.6;
W = 42;
H = 9.5;
L = 100;
OR = H/2+T; // outside radius
cuboid([L,W-2*OR,T],rounding=T/2,edges=FRONT+BACK,anchor=TOP);
tube(l=L,wall=T,or=OR);
fwd(W/2)tube(l=L,wall=T,or=OR);
--
have Fun,
Bob mailto:roosbob@wybatap.com