discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

corner rounding

KE
Karl Exler
Mon, Jan 15, 2024 6:15 PM

Dear all!

If I have something like that:

/linear_extrude(5)

    polygon([[-60,0],[-75,130],[75,130],[60,0]]);
    OR
    trapezoid(h=130, w1=120, w2=150);/

what is the best way, when I want the 3D-object to have rounded edges ?

I tried most of BISL2 functions. But some I don´t understand and some
seem too complex.

Many thanks
Karl

Dear all! If I have something like that: /linear_extrude(5)     polygon([[-60,0],[-75,130],[75,130],[60,0]]);     OR     trapezoid(h=130, w1=120, w2=150);/ what is the best way, when I want the 3D-object to have rounded edges ? I tried most of BISL2 functions. But some I don´t understand and some seem too complex. Many thanks Karl
SP
Sanjeev Prabhakar
Mon, Jan 15, 2024 6:54 PM

Is this what you mean?

[image: image.png]

On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss <
discuss@lists.openscad.org> wrote:

Dear all!

If I have something like that:

  • linear_extrude(5)        polygon([[-60,0],[-75,130],[75,130],[60,0]]);
    OR    trapezoid(h=130, w1=120, w2=150);*

what is the best way, when I want the 3D-object to have rounded edges ?

I tried most of BISL2 functions. But some I don´t understand and some seem
too complex.

Many thanks
Karl


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

Is this what you mean? [image: image.png] On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss < discuss@lists.openscad.org> wrote: > Dear all! > > If I have something like that: > > > > > > * linear_extrude(5) polygon([[-60,0],[-75,130],[75,130],[60,0]]); > OR trapezoid(h=130, w1=120, w2=150);* > > > what is the best way, when I want the 3D-object to have rounded edges ? > > I tried most of BISL2 functions. But some I don´t understand and some seem > too complex. > > Many thanks > Karl > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Mon, Jan 15, 2024 7:14 PM

I wrote library dependencies.scad long ago and this can be done easily with
that. I am sure BOSL2 is much powerful

attached is the "dependencies.scad" file and also "trapezoid.scad" file.
put both the files in the same folder and try your luck if you are using
openscad version 2021 or greater.

On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Is this what you mean?

[image: image.png]

On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss <
discuss@lists.openscad.org> wrote:

Dear all!

If I have something like that:

  • linear_extrude(5)        polygon([[-60,0],[-75,130],[75,130],[60,0]]);
    OR    trapezoid(h=130, w1=120, w2=150);*

what is the best way, when I want the 3D-object to have rounded edges ?

I tried most of BISL2 functions. But some I don´t understand and some
seem too complex.

Many thanks
Karl


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

I wrote library dependencies.scad long ago and this can be done easily with that. I am sure BOSL2 is much powerful attached is the "dependencies.scad" file and also "trapezoid.scad" file. put both the files in the same folder and try your luck if you are using openscad version 2021 or greater. On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > Is this what you mean? > > [image: image.png] > > On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss < > discuss@lists.openscad.org> wrote: > >> Dear all! >> >> If I have something like that: >> >> >> >> >> >> * linear_extrude(5) polygon([[-60,0],[-75,130],[75,130],[60,0]]); >> OR trapezoid(h=130, w1=120, w2=150);* >> >> >> what is the best way, when I want the 3D-object to have rounded edges ? >> >> I tried most of BISL2 functions. But some I don´t understand and some >> seem too complex. >> >> Many thanks >> Karl >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
KE
Karl Exler
Mon, Jan 15, 2024 7:18 PM

thanks a lot Sanjeev !
Karl

Am 15.01.24 um 20:14 schrieb Sanjeev Prabhakar via Discuss:

I wrote library dependencies.scad long ago and this can be done easily
with that. I am sure BOSL2 is much powerful

attached is the "dependencies.scad" file and also "trapezoid.scad" file.
put both the files in the same folder and try your luck if you are
using openscad version 2021 or greater.

On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar
sprabhakar2006@gmail.com wrote:

 Is this what you mean?

 image.png

 On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss
 <discuss@lists.openscad.org> wrote:

     Dear all!

     If I have something like that:

     /linear_extrude(5)

         polygon([[-60,0],[-75,130],[75,130],[60,0]]);
         OR
         trapezoid(h=130, w1=120, w2=150);/


     what is the best way, when I want the 3D-object to have
     rounded edges ?

     I tried most of BISL2 functions. But some I don´t understand
     and some seem too complex.

     Many thanks
     Karl


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

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

thanks a lot Sanjeev ! Karl Am 15.01.24 um 20:14 schrieb Sanjeev Prabhakar via Discuss: > I wrote library dependencies.scad long ago and this can be done easily > with that. I am sure BOSL2 is much powerful > > attached is the "dependencies.scad" file and also "trapezoid.scad" file. > put both the files in the same folder and try your luck if you are > using openscad version 2021 or greater. > > > On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar > <sprabhakar2006@gmail.com> wrote: > > Is this what you mean? > > image.png > > On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss > <discuss@lists.openscad.org> wrote: > > Dear all! > > If I have something like that: > > /linear_extrude(5) > >     polygon([[-60,0],[-75,130],[75,130],[60,0]]); >     OR >     trapezoid(h=130, w1=120, w2=150);/ > > > what is the best way, when I want the 3D-object to have > rounded edges ? > > I tried most of BISL2 functions. But some I don´t understand > and some seem too complex. > > Many thanks > Karl > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
AM
Adrian Mariano
Mon, Jan 15, 2024 7:33 PM

In BOSL2 if the linear_extruded object is a polygon with a few sides like
your trapezoid example then you can use rounded_prism().  If your object
has many points close together---a curved shape of some sort---then you can
use offset_sweep().  Offset_sweep will always work, but rounded_prism may
be simpler to use.  If you want the vertical edges rounded and you use
offset_sweep then you have to first use round_corners to round those edges
before offset_sweep---offset sweep only does the top and bottom edges.

On Mon, Jan 15, 2024 at 2:18 PM Karl Exler via Discuss <
discuss@lists.openscad.org> wrote:

thanks a lot Sanjeev !
Karl
Am 15.01.24 um 20:14 schrieb Sanjeev Prabhakar via Discuss:

I wrote library dependencies.scad long ago and this can be done easily
with that. I am sure BOSL2 is much powerful

attached is the "dependencies.scad" file and also "trapezoid.scad" file.
put both the files in the same folder and try your luck if you are using
openscad version 2021 or greater.

On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Is this what you mean?

[image: image.png]

On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss <
discuss@lists.openscad.org> wrote:

Dear all!

If I have something like that:

  • linear_extrude(5)
    polygon([[-60,0],[-75,130],[75,130],[60,0]]);    OR    trapezoid(h=130,
    w1=120, w2=150);*

what is the best way, when I want the 3D-object to have rounded edges ?

I tried most of BISL2 functions. But some I don´t understand and some
seem too complex.

Many thanks
Karl


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

In BOSL2 if the linear_extruded object is a polygon with a few sides like your trapezoid example then you can use rounded_prism(). If your object has many points close together---a curved shape of some sort---then you can use offset_sweep(). Offset_sweep will always work, but rounded_prism may be simpler to use. If you want the vertical edges rounded and you use offset_sweep then you have to first use round_corners to round those edges before offset_sweep---offset sweep only does the top and bottom edges. On Mon, Jan 15, 2024 at 2:18 PM Karl Exler via Discuss < discuss@lists.openscad.org> wrote: > thanks a lot Sanjeev ! > Karl > Am 15.01.24 um 20:14 schrieb Sanjeev Prabhakar via Discuss: > > I wrote library dependencies.scad long ago and this can be done easily > with that. I am sure BOSL2 is much powerful > > attached is the "dependencies.scad" file and also "trapezoid.scad" file. > put both the files in the same folder and try your luck if you are using > openscad version 2021 or greater. > > > On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar <sprabhakar2006@gmail.com> > wrote: > >> Is this what you mean? >> >> [image: image.png] >> >> On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> Dear all! >>> >>> If I have something like that: >>> >>> >>> >>> >>> >>> * linear_extrude(5) >>> polygon([[-60,0],[-75,130],[75,130],[60,0]]); OR trapezoid(h=130, >>> w1=120, w2=150);* >>> >>> >>> what is the best way, when I want the 3D-object to have rounded edges ? >>> >>> I tried most of BISL2 functions. But some I don´t understand and some >>> seem too complex. >>> >>> Many thanks >>> Karl >>> >>> >>> _______________________________________________ >>> 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 >
JB
Jordan Brown
Mon, Jan 15, 2024 8:11 PM

image.png

For this style of rounding I have a module called pipe_polygon that
traces a polygon using connected cylinders and spheres.  (Or maybe it
uses rotate_extruded arcs rather than spheres, for better matching
between the two.)  Do that once for the top and once for the bottom, and
hull.

Note that you have to be careful about dimensions, if you want to
control the outside dimensions rather than the dimensions along the
centerlines of the rounded edges.  An offset() function (which OpenSCAD
does not have natively) may be helpful.

> image.png For this style of rounding I have a module called pipe_polygon that traces a polygon using connected cylinders and spheres.  (Or maybe it uses rotate_extruded arcs rather than spheres, for better matching between the two.)  Do that once for the top and once for the bottom, and hull. Note that you have to be careful about dimensions, if you want to control the outside dimensions rather than the dimensions along the centerlines of the rounded edges.  An offset() function (which OpenSCAD does not have natively) may be helpful.
KE
Karl Exler
Mon, Jan 15, 2024 8:12 PM

thanks

Am 15.01.24 um 20:33 schrieb Adrian Mariano via Discuss:

In BOSL2 if the linear_extruded object is a polygon with a few sides
like your trapezoid example then you can use rounded_prism().  If your
object has many points close together---a curved shape of some
sort---then you can use offset_sweep().   Offset_sweep will always
work, but rounded_prism may be simpler to use.  If you want the
vertical edges rounded and you use offset_sweep then you have to first
use round_corners to round those edges before offset_sweep---offset
sweep only does the top and bottom edges.

On Mon, Jan 15, 2024 at 2:18 PM Karl Exler via Discuss
discuss@lists.openscad.org wrote:

 thanks a lot Sanjeev !
 Karl

 Am 15.01.24 um 20:14 schrieb Sanjeev Prabhakar via Discuss:
 I wrote library dependencies.scad long ago and this can be done
 easily with that. I am sure BOSL2 is much powerful

 attached is the "dependencies.scad" file and also
 "trapezoid.scad" file.
 put both the files in the same folder and try your luck if you
 are using openscad version 2021 or greater.


 On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar
 <sprabhakar2006@gmail.com> wrote:

     Is this what you mean?

     image.png

     On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss
     <discuss@lists.openscad.org> wrote:

         Dear all!

         If I have something like that:

         /linear_extrude(5)

         polygon([[-60,0],[-75,130],[75,130],[60,0]]);
             OR
             trapezoid(h=130, w1=120, w2=150);/


         what is the best way, when I want the 3D-object to have
         rounded edges ?

         I tried most of BISL2 functions. But some I don´t
         understand and some seem too complex.

         Many thanks
         Karl


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


 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email todiscuss-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 todiscuss-leave@lists.openscad.org

thanks Am 15.01.24 um 20:33 schrieb Adrian Mariano via Discuss: > In BOSL2 if the linear_extruded object is a polygon with a few sides > like your trapezoid example then you can use rounded_prism().  If your > object has many points close together---a curved shape of some > sort---then you can use offset_sweep().   Offset_sweep will always > work, but rounded_prism may be simpler to use.  If you want the > vertical edges rounded and you use offset_sweep then you have to first > use round_corners to round those edges before offset_sweep---offset > sweep only does the top and bottom edges. > > > On Mon, Jan 15, 2024 at 2:18 PM Karl Exler via Discuss > <discuss@lists.openscad.org> wrote: > > thanks a lot Sanjeev ! > Karl > > Am 15.01.24 um 20:14 schrieb Sanjeev Prabhakar via Discuss: >> I wrote library dependencies.scad long ago and this can be done >> easily with that. I am sure BOSL2 is much powerful >> >> attached is the "dependencies.scad" file and also >> "trapezoid.scad" file. >> put both the files in the same folder and try your luck if you >> are using openscad version 2021 or greater. >> >> >> On Mon, 15 Jan 2024 at 19:54, Sanjeev Prabhakar >> <sprabhakar2006@gmail.com> wrote: >> >> Is this what you mean? >> >> image.png >> >> On Mon, 15 Jan 2024 at 19:16, Karl Exler via Discuss >> <discuss@lists.openscad.org> wrote: >> >> Dear all! >> >> If I have something like that: >> >> /linear_extrude(5) >> >> polygon([[-60,0],[-75,130],[75,130],[60,0]]); >>     OR >>     trapezoid(h=130, w1=120, w2=150);/ >> >> >> what is the best way, when I want the 3D-object to have >> rounded edges ? >> >> I tried most of BISL2 functions. But some I don´t >> understand and some seem too complex. >> >> Many thanks >> Karl >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to >> discuss-leave@lists.openscad.org >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-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 todiscuss-leave@lists.openscad.org