discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Tangential join/infill two parallel vertical cylindrical tubes.

A
adrianv
Tue, Apr 20, 2021 10:54 AM

The cutting cylinders need to be longer than the object they cut, not the
precise right size, or you'll have problems with your model.  Just make them
silly long.

OpenSCAD mailing list-2 wrote

AdrianV, Ray West, Troberg
Thanks for all your suggestions! :-)  I now understand at least two new
ways of reaching my goal; hull, linear_extrude and mirror.  Just need to
focus on the maths now.  The vertical offset was left over from some tests
I did and shouldn't have been in the original code but I've put it in to
the Hull based model  now, added an additional  horizontal spacing between
the vertical cylinder centres (to allow swing room for the arm) and am now
trying to work out the maths to ensure that the cylinders that cut the
holes are the right length.  Yes, I could make them silly long so they
definitely cut right through  but its all part of the challenge.  Thanks,
all, for your ideas.
Chris

On Tue, 20 Apr 2021 at 08:36, <

discuss-request@.openscad

> wrote:

Send Discuss mailing list submissions to

discuss@.openscad

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to

discuss-request@.openscad

You can reach the person managing the list at

discuss-owner@.openscad

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Discuss digest..."

Today's Topics:

1. Tangential join/infill two parallel vertical cylindrical tubes.
   (Chris Johnson)
2. Re: Tangential join/infill two parallel vertical cylindrical tubes.
   (adrianv)
3. Re: Tangential join/infill two parallel vertical cylindrical tubes.
   (Ray West)
4. Re: Tangential join/infill two parallel vertical cylindrical tubes.
   (Troberg)
5. Meassuerments workarround (Karl Exler)

Message: 1
Date: Mon, 19 Apr 2021 23:49:30 +0100
From: Chris Johnson <

cjohnsonuk@

>

Subject: [OpenSCAD] Tangential join/infill two parallel vertical
cylindrical tubes.
To:

discuss@.openscad

Message-ID:
<

CAEC-mOHVaTRPgwY00+Pv+92swrAv+uRCgFW4SbXign8LPno5vg@.gmail

Content-Type: multipart/alternative;
boundary="000000000000b02fc605c05b2694"

I have 2 parallel vertical cylinders with different diameters that are
adjacent and touching.  I want to fill the space 'between' the cylinders
to
join them securely.  I did think about creating a polygon block that I
join
with the two cylinders before taking the inner cylinders away to make a
straight edge join but I thought this is a simple enough model to learn
how
to use the roundanything library  to create a fill with a radius of my
choosing.  However , being a noob, Not sure where to start.

back story: The larger cylinder fits over my monitor stand.  The smaller
Cylinder is for an anglepoise arm for a webcam/ video light.  I just need
to be able to join them nicely so that they don't break apart.
Here's what I've got so far.:

include <Round-Anything/MinkowskiRound.scad>;
$fn=10;
br=32;
sr=12.3;
bw=5;
sw=4;
height=12;
boundingEnvelope=[50,50,50];
OR=0.7;
IR=1;
enable=1;

minkowskiRound(OR, IR, enable, boundingEnvelope) {
union(){
translate([0,0,-10]){
difference(){
cylinder (height,br+bw,br+bw,center=true);
cylinder (height+2,br,br,center=true);
}
translate([br+sr+sw+bw,0,0]){
difference(){
cylinder (height,sr+sw,sr+sw,center=true);
cylinder (height+2,sr,sr,center=true);
}
}
}
}
}

But I just get a spinning circle on my Mac.
not sure how the bounding envelope works or how long I should expect to
wait for a result.

Any help appreciated:

Chris Johnson

The cutting cylinders need to be longer than the object they cut, *not* the precise right size, or you'll have problems with your model. Just make them silly long. OpenSCAD mailing list-2 wrote > AdrianV, Ray West, Troberg > Thanks for all your suggestions! :-) I now understand at least two new > ways of reaching my goal; hull, linear_extrude and mirror. Just need to > focus on the maths now. The vertical offset was left over from some tests > I did and shouldn't have been in the original code but I've put it in to > the Hull based model now, added an additional horizontal spacing between > the vertical cylinder centres (to allow swing room for the arm) and am now > trying to work out the maths to ensure that the cylinders that cut the > holes are the right length. Yes, I could make them silly long so they > definitely cut right through but its all part of the challenge. Thanks, > all, for your ideas. > Chris > > > On Tue, 20 Apr 2021 at 08:36, &lt; > discuss-request@.openscad > &gt; wrote: > >> Send Discuss mailing list submissions to >> > discuss@.openscad >> >> To subscribe or unsubscribe via email, send a message with subject or >> body 'help' to >> > discuss-request@.openscad >> >> You can reach the person managing the list at >> > discuss-owner@.openscad >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Discuss digest..." >> >> Today's Topics: >> >> 1. Tangential join/infill two parallel vertical cylindrical tubes. >> (Chris Johnson) >> 2. Re: Tangential join/infill two parallel vertical cylindrical tubes. >> (adrianv) >> 3. Re: Tangential join/infill two parallel vertical cylindrical tubes. >> (Ray West) >> 4. Re: Tangential join/infill two parallel vertical cylindrical tubes. >> (Troberg) >> 5. Meassuerments workarround (Karl Exler) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 19 Apr 2021 23:49:30 +0100 >> From: Chris Johnson &lt; > cjohnsonuk@ > &gt; >> Subject: [OpenSCAD] Tangential join/infill two parallel vertical >> cylindrical tubes. >> To: > discuss@.openscad >> Message-ID: >> < >> > CAEC-mOHVaTRPgwY00+Pv+92swrAv+uRCgFW4SbXign8LPno5vg@.gmail >> >> Content-Type: multipart/alternative; >> boundary="000000000000b02fc605c05b2694" >> >> I have 2 parallel vertical cylinders with different diameters that are >> adjacent and touching. I want to fill the space 'between' the cylinders >> to >> join them securely. I did think about creating a polygon block that I >> join >> with the two cylinders before taking the inner cylinders away to make a >> straight edge join but I thought this is a simple enough model to learn >> how >> to use the roundanything library to create a fill with a radius of my >> choosing. However , being a noob, Not sure where to start. >> >> back story: The larger cylinder fits over my monitor stand. The smaller >> Cylinder is for an anglepoise arm for a webcam/ video light. I just need >> to be able to join them nicely so that they don't break apart. >> Here's what I've got so far.: >> >> include &lt;Round-Anything/MinkowskiRound.scad&gt;; >> $fn=10; >> br=32; >> sr=12.3; >> bw=5; >> sw=4; >> height=12; >> boundingEnvelope=[50,50,50]; >> OR=0.7; >> IR=1; >> enable=1; >> >> minkowskiRound(OR, IR, enable, boundingEnvelope) { >> union(){ >> translate([0,0,-10]){ >> difference(){ >> cylinder (height,br+bw,br+bw,center=true); >> cylinder (height+2,br,br,center=true); >> } >> translate([br+sr+sw+bw,0,0]){ >> difference(){ >> cylinder (height,sr+sw,sr+sw,center=true); >> cylinder (height+2,sr,sr,center=true); >> } >> } >> } >> } >> } >> >> But I just get a spinning circle on my Mac. >> not sure how the bounding envelope works or how long I should expect to >> wait for a result. >> >> Any help appreciated: >> >> Chris Johnson >>
RW
Ray West
Tue, Apr 20, 2021 11:27 AM

If you do a 2d drawing of the extrusion profile, and extrude, you have
no problem wrt the length of the hole. The example I previously posted, 
a separation value can be added, and modify each translation value for
x  in the modules (and also the 'wedge polygon). If you are fussy about
the tangent, then you could remove (or not bother)  the 'filler' module,
and its references, and  replace the code after the '$fn=80;' by

difference(){
hull(){
    linear_extrude(height)
    skin();
}
translate([0,0,-height])linear_extrude(height*3)holes();
}

you need longer holes in 3d if you want to be sure that' it knows the
holes go right through', and making them three times longer and
translating back one length, is the easiest.

On 20/04/2021 11:54, adrianv wrote:

The cutting cylinders need to be longer than the object they cut,
not the precise right size, or you'll have problems with your model.
 Just make them silly long.

 OpenSCAD mailing list-2 wrote
 AdrianV, Ray West, Troberg
 Thanks for all your suggestions! :-)  I now understand at least
 two new
 ways of reaching my goal; hull, linear_extrude and mirror.  Just
 need to
 focus on the maths now.  The vertical offset was left over from
 some tests
 I did and shouldn't have been in the original code but I've put it
 in to
 the Hull based model  now, added an additional  horizontal spacing
 between
 the vertical cylinder centres (to allow swing room for the arm)
 and am now
 trying to work out the maths to ensure that the cylinders that cut
 the
 holes are the right length.  Yes, I could make them silly long so
 they
 definitely cut right through  but its all part of the challenge.
  Thanks,
 all, for your ideas.
 Chris


 On Tue, 20 Apr 2021 at 08:36, <[hidden email]
 </user/SendEmail.jtp?type=email&email=discuss-request%40.openscad>>
 wrote:

Send Discuss mailing list submissions to
[hidden email]

 </user/SendEmail.jtp?type=email&email=discuss%40.openscad>

To subscribe or unsubscribe via email, send a message with

 subject or

body 'help' to
[hidden email]

 </user/SendEmail.jtp?type=email&email=discuss-request%40.openscad>

You can reach the person managing the list at
[hidden email]

 </user/SendEmail.jtp?type=email&email=discuss-owner%40.openscad>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Discuss digest..."

Today's Topics:

   1. Tangential join/infill two parallel vertical cylindrical

 tubes.

      (Chris Johnson)
   2. Re: Tangential join/infill two parallel vertical

 cylindrical tubes.

      (adrianv)
   3. Re: Tangential join/infill two parallel vertical

 cylindrical tubes.

      (Ray West)
   4. Re: Tangential join/infill two parallel vertical

 cylindrical tubes.

      (Troberg)
   5. Meassuerments workarround (Karl Exler)

 ----------------------------------------------------------------------

Message: 1
Date: Mon, 19 Apr 2021 23:49:30 +0100
From: Chris Johnson <[hidden email]

 </user/SendEmail.jtp?type=email&email=cjohnsonuk%40>>

Subject: [OpenSCAD] Tangential join/infill two parallel vertical
        cylindrical tubes.
To: [hidden email]

 </user/SendEmail.jtp?type=email&email=discuss%40.openscad>

Message-ID:
        <
[hidden email]

 </user/SendEmail.jtp?type=email&email=CAEC-mOHVaTRPgwY00%2BPv%2B92swrAv%2BuRCgFW4SbXign8LPno5vg%40.gmail>>

Content-Type: multipart/alternative;
        boundary="000000000000b02fc605c05b2694"

I have 2 parallel vertical cylinders with different diameters

 that are

adjacent and touching.  I want to fill the space 'between' the

 cylinders to

join them securely.  I did think about creating a polygon block

 that I join

with the two cylinders before taking the inner cylinders away to

 make a

straight edge join but I thought this is a simple enough model

 to learn how

to use the roundanything library  to create a fill with a radius

 of my

choosing.  However , being a noob, Not sure where to start.

back story: The larger cylinder fits over my monitor stand.  The

 smaller

Cylinder is for an anglepoise arm for a webcam/ video light.  I

 just need

to be able to join them nicely so that they don't break apart.
Here's what I've got so far.:

include <Round-Anything/MinkowskiRound.scad>;
$fn=10;
br=32;
sr=12.3;
bw=5;
sw=4;
height=12;
boundingEnvelope=[50,50,50];
OR=0.7;
IR=1;
enable=1;

minkowskiRound(OR, IR, enable, boundingEnvelope) {
    union(){
        translate([0,0,-10]){
            difference(){
                cylinder (height,br+bw,br+bw,center=true);
                cylinder (height+2,br,br,center=true);
            }
            translate([br+sr+sw+bw,0,0]){
                difference(){
                    cylinder (height,sr+sw,sr+sw,center=true);
                    cylinder (height+2,sr,sr,center=true);
                }
            }
        }
    }
}

But I just get a spinning circle on my Mac.
not sure how the bounding envelope works or how long I should

 expect to

wait for a result.

Any help appreciated:

Chris Johnson

If you do a 2d drawing of the extrusion profile, and extrude, you have no problem wrt the length of the hole. The example I previously posted,  a separation value can be added, and modify each translation value for x  in the modules (and also the 'wedge polygon). If you are fussy about the tangent, then you could remove (or not bother)  the 'filler' module, and its references, and  replace the code after the '$fn=80;' by difference(){ hull(){     linear_extrude(height)     skin(); } translate([0,0,-height])linear_extrude(height*3)holes(); } you need longer holes in 3d if you want to be sure that' it knows the holes go right through', and making them three times longer and translating back one length, is the easiest. On 20/04/2021 11:54, adrianv wrote: > The cutting cylinders need to be longer than the object they cut, > *not* the precise right size, or you'll have problems with your model. >  Just make them silly long. > > OpenSCAD mailing list-2 wrote > AdrianV, Ray West, Troberg > Thanks for all your suggestions! :-)  I now understand at least > two new > ways of reaching my goal; hull, linear_extrude and mirror.  Just > need to > focus on the maths now.  The vertical offset was left over from > some tests > I did and shouldn't have been in the original code but I've put it > in to > the Hull based model  now, added an additional  horizontal spacing > between > the vertical cylinder centres (to allow swing room for the arm) > and am now > trying to work out the maths to ensure that the cylinders that cut > the > holes are the right length.  Yes, I could make them silly long so > they > definitely cut right through  but its all part of the challenge. >  Thanks, > all, for your ideas. > Chris > > > On Tue, 20 Apr 2021 at 08:36, <[hidden email] > </user/SendEmail.jtp?type=email&email=discuss-request%40.openscad>> > wrote: > > > Send Discuss mailing list submissions to > > [hidden email] > </user/SendEmail.jtp?type=email&email=discuss%40.openscad> > > > > To subscribe or unsubscribe via email, send a message with > subject or > > body 'help' to > > [hidden email] > </user/SendEmail.jtp?type=email&email=discuss-request%40.openscad> > > > > You can reach the person managing the list at > > [hidden email] > </user/SendEmail.jtp?type=email&email=discuss-owner%40.openscad> > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Discuss digest..." > > > > Today's Topics: > > > >    1. Tangential join/infill two parallel vertical cylindrical > tubes. > >       (Chris Johnson) > >    2. Re: Tangential join/infill two parallel vertical > cylindrical tubes. > >       (adrianv) > >    3. Re: Tangential join/infill two parallel vertical > cylindrical tubes. > >       (Ray West) > >    4. Re: Tangential join/infill two parallel vertical > cylindrical tubes. > >       (Troberg) > >    5. Meassuerments workarround (Karl Exler) > > > > > > > ---------------------------------------------------------------------- > > > > > Message: 1 > > Date: Mon, 19 Apr 2021 23:49:30 +0100 > > From: Chris Johnson <[hidden email] > </user/SendEmail.jtp?type=email&email=cjohnsonuk%40>> > > Subject: [OpenSCAD] Tangential join/infill two parallel vertical > >         cylindrical tubes. > > To: [hidden email] > </user/SendEmail.jtp?type=email&email=discuss%40.openscad> > > Message-ID: > >         < > > [hidden email] > </user/SendEmail.jtp?type=email&email=CAEC-mOHVaTRPgwY00%2BPv%2B92swrAv%2BuRCgFW4SbXign8LPno5vg%40.gmail>> > > > Content-Type: multipart/alternative; > >         boundary="000000000000b02fc605c05b2694" > > > > I have 2 parallel vertical cylinders with different diameters > that are > > adjacent and touching.  I want to fill the space 'between' the > cylinders to > > join them securely.  I did think about creating a polygon block > that I join > > with the two cylinders before taking the inner cylinders away to > make a > > straight edge join but I thought this is a simple enough model > to learn how > > to use the roundanything library  to create a fill with a radius > of my > > choosing.  However , being a noob, Not sure where to start. > > > > back story: The larger cylinder fits over my monitor stand.  The > smaller > > Cylinder is for an anglepoise arm for a webcam/ video light.  I > just need > > to be able to join them nicely so that they don't break apart. > > Here's what I've got so far.: > > > > include <Round-Anything/MinkowskiRound.scad>; > > $fn=10; > > br=32; > > sr=12.3; > > bw=5; > > sw=4; > > height=12; > > boundingEnvelope=[50,50,50]; > > OR=0.7; > > IR=1; > > enable=1; > > > > minkowskiRound(OR, IR, enable, boundingEnvelope) { > >     union(){ > >         translate([0,0,-10]){ > >             difference(){ > >                 cylinder (height,br+bw,br+bw,center=true); > >                 cylinder (height+2,br,br,center=true); > >             } > >             translate([br+sr+sw+bw,0,0]){ > >                 difference(){ > >                     cylinder (height,sr+sw,sr+sw,center=true); > >                     cylinder (height+2,sr,sr,center=true); > >                 } > >             } > >         } > >     } > > } > > > > But I just get a spinning circle on my Mac. > > not sure how the bounding envelope works or how long I should > expect to > > wait for a result. > > > > Any help appreciated: > > > > Chris Johnson > >