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: 7020

Attachments:

Replies to This Discussion

:)

Hi!
Can I make a tiling to create seamless textures?
If not, is it possible to use a another Mesh made is not
Mesh Machine?

I ready to create in the Rhino tiling texture. then to use it in your algorithm.

I'll show you a quick example of one method to make tileable patterns - in this case a singly periodic voronoi pattern. You can adapt it to make triangles (delaunay) or whatever:

1 - make a base pattern

2 - use the b+w values for a circle packing

3 - keep the circle center points

4 - copy them across (and above/below if you want a doubly periodic pattern)

5 - make the voronoi (or delaunay in your case)

6 - keep only the curves whose center lies in the original bounding box

Thanks so much Javier!
It's a great idea!
But I went to "reverse" I used Lloyd's algorithm that make and share Daniel Piker. I copied all points in the right and left and drove it through the Voronoi + Hoopsnake

I just do not understand how to create a "base pattern" and where to get the b + w values.
I just started to learn to work in grasshopper and many still do not understand :(

Please indicate how you managed to make a circle packing from the image  (on the shadow map)? If you can, please share pattern for it.
I am the third day of trying to do this, but it is impossible.
It is very interesting and necessary for me.

For the b+w pattern, I was just playing around with sin/cos values. I've attached an example. As for the image-based circle packing, I can't share my script, but its basically an adaptation of http://jarek-rhinoscripts.blogspot.mx/2010/01/image-based-circle-pa... . In any case, I adapted Daniel's version of Lloyd's to work with the pattern in the attachment.

Sorry, had to fix a mistake in the def. Here it is.

Attachments:

Thanks Javier!

This is great works!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service