long back someone posted a code to make the below model.
[image: Screenshot 2023-10-07 at 7.36.13 PM.png]
I don't remember the great guy's name.
I wrote a python version of the same a year or so ago.
Whenever I have to test the efficiency of an offset function, I run on this
model.
earlier it used to take around an hour just to calculate the points to
produce this, rendering time is separate.
I have written an offset function (named oset) which calculates this model
in 1 minute, which I feel is a huge improvement over the past.
Although this offset function does not work if the inner offset amount
given is bigger than a certain amount or very large on a few shapes, it
still works in most of the cases.
The python version of the code to make this model is attached here in case
anyone is interested.
link to the 22.5 mb scad file of this model, generated with the code
already shared.
https://github.com/sprabhakar2006/openSCAD/blob/main/artifact_1.scad
On Sat, 7 Oct 2023 at 19:48, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:
long back someone posted a code to make the below model.
[image: Screenshot 2023-10-07 at 7.36.13 PM.png]
I don't remember the great guy's name.
I wrote a python version of the same a year or so ago.
Whenever I have to test the efficiency of an offset function, I run on
this model.
earlier it used to take around an hour just to calculate the points to
produce this, rendering time is separate.
I have written an offset function (named oset) which calculates this model
in 1 minute, which I feel is a huge improvement over the past.
Although this offset function does not work if the inner offset amount
given is bigger than a certain amount or very large on a few shapes, it
still works in most of the cases.
The python version of the code to make this model is attached here in case
anyone is interested.