hanskellner / Fusion360Voronoi

Voronoi Sketch Generator Script for Autodesk Fusion 360
https://hanskellner.github.io/Fusion360Voronoi/Voronoi.html
Other
137 stars 21 forks source link

Request: Min and Max Cell Distance, Min and Max Cell Area, Refresh #10

Open robarm74 opened 3 years ago

robarm74 commented 3 years ago

Hi. First of all I would like to congratulate you for this beautiful plugin. If possible I would like to make some requests.

Cell distance: I would like to be able to set the minimum and maximum cell distance. In this way we can avoid too much dishomogeneous distances. The relaxation tends to make the cells too homogeneous both in shape and size.

Minimum and maximum area of cells: it would be nice to be able to set them in such a way as to avoid cells too small or large.

Refresh: it would be nice to have the possibility to recalculate shapes and positions in a random way so you can have more proposals.

thanks in advance

hanskellner commented 3 years ago

Hi @robarm74 -

Refresh (randomize) support would be easy to add.

For the cell distance, does adjusting the relaxation amount to a very small value not provide the support you would like?

I'll look into how I might support your requests.

Thanks for your feedback!

robarm74 commented 3 years ago

Thanks for the reply. The "relaxation" parameter does not seem to be enough. I would like to have large and small cells but for 3d printing the distance between the cells must not be too small or too large but must be within certain limits. With the relaxation parameter the cells seem to take the same size. Or maybe I'm doing something wrong. Thanks again for your support and for the work you do!

lokiidesigns commented 3 years ago

Hi @robarm74 & @hanskellner, I've just found this and don't want to hi-jack it but would agree that when considering 3D printing as a use case for using this generator (which is amazing by the way!) that minimum widths between cells would need to be a parameter that is set. I still like the randomness that Relaxation offers however so am wondering if it would be difficult to add a flag/checkbox for when a minimum cell distance is required and then allows you to put in a value?

For instance I am trying to create an item to print in ShapeWays Natural Sandstone where "Supported Wires" requires 2.0mm & Unsupported Wires requires 3.0mm widths. At present I am generating something that looks pleasing and then having to check the minimum width before tightening up on the relaxation but checking the width between all sides of 50+ cells can take quite a while to do and then to fix as well.

If this isn't achievable then all good as this is still an amazing product and I've been using it for years, so it's been great to see how much it has matured.

hanskellner commented 2 years ago

Hi All -

I've made an update the add-in that allows setting a "Cell Gap" in millimeters for Curved and Linear cells (not shapes).

https://github.com/hanskellner/Fusion360Voronoi/blob/master/README.md#cell-gap

It seems to work in most cases. Although, I've noted there are a times when a cell might still be too close to another. In that case, you can manual edit the distance to clean it up.