Grasshopper

algorithmic modeling for Rhino

Ellipse Packing from Circle Packing VB script component

So I am working on a skin and want to get it to be packed ellipses or ovals instead of circles. The component I've been working with is one of the common circle packing scripts floating around grasshopper3d.com, but due to my lack of scripting experience, I am not able to convert it to pack ellipses instead of if it is even pheasable to edit this componenet or just develop a new script. 

 

Below is the attached script.... i need this done ASAP so any help would be appreciated

Thanks

Views: 7031

Attachments:

Replies to This Discussion

This script works only for circles. I wonder, is it possible to pack ellipses? Perhaps with Kangaroo...
Anyway, maybe this little trick will alleviate the disappointment. Use the triangles of a mesh to make ellipses inside. (need kangaroo 0.99 and Plankton)

Attachments:

well, a crude way of doing this would be to take your result, and then scale it in one direction, say x=1.0 and y=0.667. quick, crude, works. you might want to do it in rhino, or you could do it in grasshopper. If you are trying to fit to a boundary, simply multiply your boundary by the inverse of the scale (using above numbers, for y, 1.0/0.667) before doing your circle pack

Thank U Daniel

I installed the Kangaroo and Plankton.
I downloded yours .ghx,

But, unfortunately, the script does not work.
Lost connection and the screenshot of my Grasshopper I see another...
What could be the problem here?

That's because you have not installed correctly. Have the latest versions? You've unlocked the .gha? You've put all the .dll and .gha in the libraries folder? You've restarted Rhino?

all latest versions

I create a new folder Plankton in C:\Users\Alex\AppData\Roaming\Grasshopper\Libraries\

C:\Users\Alex\AppData\Roaming\Grasshopper\Libraries\Plankton

All files are copied to this folder.

Plankton-0.3.4.tar.gz and Plankton-0.3.4.zip Both archive Unzip in the Plankton-0.3.4 folder

Nop, I guess that GH take a unnecessary time to read all those files. Put only kangaro0099.gha, kangarooLib0099.dll, Plankton.gha, Plankton.dll and PlanktonGh.dll

In all gha files: right click>properties>unlock (or something similar) to unlock them.

To find out if you've done it correctly, if you write on the canvas "MeshMachine" and "PlanktonMesh" should appear.

oh yeah!
Thank You enormous Daniel!
I unlocked all .gha including dlls.
without unlock the all dll's, script did not work correctly.


Is it possible to make the grid more chaotic?
Add to it the contrast (figuratively speaking)
To create large and small ellipses?

In SizP, plug some n-points and in SizV, plug n-values (differents at lenght input). You will have to test, but do not expect absolute control.

And play with the others parameters, as Exp = 3 or iter = 1.

And remember, you can apply it to any surface or mesh. But if it is an open, you have to fix the points and curves of boundaries to anchor it.

Search on the forum the publication of Daniel Piker for more details.

Welcome to the Magic of the Mesh Machine :)

This is great. Gets crazy patterns :))))))

Thank U Daniel!
You gave me a magic wand :)

by the way, is there an algorithm to fill the void in ellipses?
On my image marked in blue

Continuing with Daniel's approach, I guess you could either recursively fill with smaller ovals, or go for circles. Neither one is perfect, they are just approximations. You need the SI plugin for this one.

Attachments:

Thank you Javier, your algorithm gives a beautiful pattern :)
I'll try it but first I need to install plugins




it's possibly and without intersections, but only within the five and four ellipses.

I drew it by hand without the algorithm.
Just to check.

Hi Javier!

How to make circles on the second picture?
And I also think it would be great if instead of circles to create a polygon and then apply the tool! _CurveThroughPolyline.
I did so in Reno. Get a good result.

Can I use _CurveThroughPolyline in GH?



RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service