discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

smoothing a 2D object

J
jon
Sat, Aug 26, 2023 2:51 PM

Is there an easy way to smooth a 2D object that was obtained via
projection()?  I saw the smoothing function in BOSL2 but do not
understand how to convert a 2D/projection() object to be compatible with
the BOSL2 function.

Jon

Is there an easy way to smooth a 2D object that was obtained via projection()?  I saw the smoothing function in BOSL2 but do not understand how to convert a 2D/projection() object to be compatible with the BOSL2 function. Jon
AM
Adrian Mariano
Sat, Aug 26, 2023 4:02 PM

You don't say what you want to do.  Vague questions are always bad.

Perhaps this will do the job?

https://github.com/BelfrySCAD/BOSL2/wiki/shapes2d.scad#module-round2d

It works using repeated offset calls.

On Sat, Aug 26, 2023 at 10:52 AM jon jon@jonbondy.com wrote:

Is there an easy way to smooth a 2D object that was obtained via
projection()?  I saw the smoothing function in BOSL2 but do not
understand how to convert a 2D/projection() object to be compatible with
the BOSL2 function.

Jon


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

You don't say what you want to do. Vague questions are always bad. Perhaps this will do the job? https://github.com/BelfrySCAD/BOSL2/wiki/shapes2d.scad#module-round2d It works using repeated offset calls. On Sat, Aug 26, 2023 at 10:52 AM jon <jon@jonbondy.com> wrote: > Is there an easy way to smooth a 2D object that was obtained via > projection()? I saw the smoothing function in BOSL2 but do not > understand how to convert a 2D/projection() object to be compatible with > the BOSL2 function. > > Jon > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
J
jon
Sat, Aug 26, 2023 4:14 PM

I was given a 2D object (arbitrary shape cut out of foam board) and
scanned it, and the result is recognizable, but it has jagged edges.  I
wanted to get back to something closer to the original. round2d() does
that perfectly: thank you!  I was searching for "smooth" rather than
"round" so I ended up in the wrong part of the library.

Jon

On 8/26/2023 12:02 PM, Adrian Mariano wrote:

You don't say what you want to do.  Vague questions are always bad.

Perhaps this will do the job?

https://github.com/BelfrySCAD/BOSL2/wiki/shapes2d.scad#module-round2d

It works using repeated offset calls.

On Sat, Aug 26, 2023 at 10:52 AM jon jon@jonbondy.com wrote:

 Is there an easy way to smooth a 2D object that was obtained via
 projection()?  I saw the smoothing function in BOSL2 but do not
 understand how to convert a 2D/projection() object to be
 compatible with
 the BOSL2 function.

 Jon
 _______________________________________________
 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

I was given a 2D object (arbitrary shape cut out of foam board) and scanned it, and the result is recognizable, but it has jagged edges.  I wanted to get back to something closer to the original. round2d() does that perfectly: thank you!  I was searching for "smooth" rather than "round" so I ended up in the wrong part of the library. Jon On 8/26/2023 12:02 PM, Adrian Mariano wrote: > You don't say what you want to do.  Vague questions are always bad. > > Perhaps this will do the job? > > https://github.com/BelfrySCAD/BOSL2/wiki/shapes2d.scad#module-round2d > > It works using repeated offset calls. > > > On Sat, Aug 26, 2023 at 10:52 AM jon <jon@jonbondy.com> wrote: > > Is there an easy way to smooth a 2D object that was obtained via > projection()?  I saw the smoothing function in BOSL2 but do not > understand how to convert a 2D/projection() object to be > compatible with > the BOSL2 function. > > Jon > _______________________________________________ > 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