discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Fwd: Re: rounding all edges of a box?

AM
Adrian Mariano
Wed, Jan 4, 2023 9:35 PM

Here's a way to make a similar model with similar rounding that doesn't
rely on generating the model externally in python.  It does of course rely
on BOSL2.  Basically you can make the semi-circular roundings using
offset_sweep, which can create prisms that flare out, and differencing that
away gives the desired result.  (I haven't looked at Sanjeev's python to
compare code complexity.)

[image: image.png]
This model previews in 30s and renders in about a minute on my old
computer.  It also has smooth rounded corners at the top of the
semi-circles, instead of the roundings meeting at a corner.  In the dev
version it previews in 21s and renders in 23s.

On Wed, Dec 28, 2022 at 9:23 PM Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Thanks Ken,

Could you run the jupyter notebook file ?


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

Here's a way to make a similar model with similar rounding that doesn't rely on generating the model externally in python. It does of course rely on BOSL2. Basically you can make the semi-circular roundings using offset_sweep, which can create prisms that flare out, and differencing that away gives the desired result. (I haven't looked at Sanjeev's python to compare code complexity.) [image: image.png] This model previews in 30s and renders in about a minute on my old computer. It also has smooth rounded corners at the top of the semi-circles, instead of the roundings meeting at a corner. In the dev version it previews in 21s and renders in 23s. On Wed, Dec 28, 2022 at 9:23 PM Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > Thanks Ken, > > Could you run the jupyter notebook file ? > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
K
Ken
Thu, Jan 5, 2023 5:24 AM

Thanks Adrian- I have saved the code & when my son and grandson go back
to home in a week or so I will take some time to try and understand how
you have done it. It's great to see many different ways to arrive at the
same- or similar- result.

On 2023-01-05 08:35, Adrian Mariano wrote:

Here's a way to make a similar model with similar rounding that
doesn't rely on generating the model externally in python.   It does
of course rely on BOSL2.  Basically you can make the semi-circular
roundings using offset_sweep, which can create prisms that flare out,
and differencing that away gives the desired result.  (I haven't
looked at Sanjeev's python to compare code complexity.)

image.png
This model previews in 30s and renders in about a minute on my old
computer.  It also has smooth rounded corners at the top of the
semi-circles, instead of the roundings meeting at a corner.   In the
dev version it previews in 21s and renders in 23s.

On Wed, Dec 28, 2022 at 9:23 PM Sanjeev Prabhakar
sprabhakar2006@gmail.com wrote:

 Thanks Ken,

 Could you run the jupyter notebook file ?


 _______________________________________________
 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

--
Cheers, Ken
bats059@gmail.com
https://vk7krj.com/running.html
https://sstv.vk7krj.com/all_bands.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Our job as parents is to teach them to control all three.

Thanks Adrian- I have saved the code & when my son and grandson go back to home in a week or so I will take some time to try and understand how you have done it. It's great to see many different ways to arrive at the same- or similar- result. On 2023-01-05 08:35, Adrian Mariano wrote: > Here's a way to make a similar model with similar rounding that > doesn't rely on generating the model externally in python.   It does > of course rely on BOSL2.  Basically you can make the semi-circular > roundings using offset_sweep, which can create prisms that flare out, > and differencing that away gives the desired result.  (I haven't > looked at Sanjeev's python to compare code complexity.) > > image.png > This model previews in 30s and renders in about a minute on my old > computer.  It also has smooth rounded corners at the top of the > semi-circles, instead of the roundings meeting at a corner.   In the > dev version it previews in 21s and renders in 23s. > > On Wed, Dec 28, 2022 at 9:23 PM Sanjeev Prabhakar > <sprabhakar2006@gmail.com> wrote: > > Thanks Ken, > > Could you run the jupyter notebook file ? > > > _______________________________________________ > 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 -- Cheers, Ken bats059@gmail.com https://vk7krj.com/running.html https://sstv.vk7krj.com/all_bands.html ---------------------------------------- A baby can be defined as an ego with a noise at one end and a smell at the other. Our job as parents is to teach them to control all three.