Grasshopper

algorithmic modeling for Rhino

Here's an example definition showing how to generate a circle packing from an arbitrary triangulation:

circle_packing_example.gh

as shown here

http://www.grasshopper3d.com/photo/circle-packing-1

Views: 62240

Replies to This Discussion

Hi Berkhan,
To set the referenced dll, you need to right click the component and choose 'Manage Assemblies'. Then select the location of the KangarooSolver.dll on your computer - something like Program Files>Rhino6>Plugins>Grasshopper>Components

Hi, This is wonderful, but I am having some trouble broadcasting packed circles across a custom shape. I am trying to cover this hand model in packed circles.

If I use the CircleFill_OnSurface_within_curve.gh, how do I set up a curve that defines the entire shape of the hand? Should I use a different .gh script? When I try the CircleFill_withBoundaryCollide.gh, the circles do not conform to the surface of the mesh, they all face up.

Any help would be highly appreciated. 

Thanks very much!

Attachments:

You can just remove that goal if you do not require the curve.

If you are using a mesh instead of a surface then the part which draws the circles based on the normals needs to be slightly different.

Attached is a modified definition.

Attachments:

Hello  Daniel !

thank you for great job !

can I ask
is it your code in the video ?

https://youtu.be/c9_vNtQGUUA?t=172


if yes  can you  provide the link where can download this code .
or how to modified your previous code  (CircleFill_OnMesh.gh) to get results same in video ,
in the video the circles perfectly fit the shape and not intersect each other and no have any untouched space between circles and border , is it possible make same in 3D surface ?



Best  regards !

Hi Daniel;

Could you reload the definition?

I'm trying to download but I'm getting an error message like this :

No se puede acceder a este sitio web

Es posible que la página webhttps://api.ning.com/files/ku4bsNFR3J3njFWGnf1ptAKYKwQohSGhyb5BbzSv...*dK20H/CircleFill_OnMesh.gh esté temporalmente inactiva o que se haya trasladado definitivamente a otra dirección.

_
ERR_CONTENT_DECODING_FAILED

Hi Jeroen + Daniel,

This definition is fantastic! 

Is it possible to use an image as the mesh?

To inform the circle radius from a greyscale? 

I would like to incorporate import image or an image sampler but I cannot figure out how to connect it into the system? Any help is greatly appreciated! 

Quinn 

Hi daniel,
The definition works perfectly as is on my MAC with rhino 6 and redirecting the DLL file but i can't get it to work with my windows. I get the following error on the c# component:
1. Warning (CS1701): Assuming assembly reference 'RhinoCommon, Version=5.1.30000.13, Culture=neutral, PublicKeyToken=552281e97c755530' matches 'RhinoCommon, Version=6.4.18130.19341, Culture=neutral, PublicKeyToken=552281e97c755530', you may need to supply runtime policy


and on the solver this error:
1. Solution exception:Unable to cast object of type 'SphereCurveCollide' to type 'KangarooSolver.IGoal'.

i've unblocked the plugin files before extracting and after, I also unchecked the COFF settings as stated in your PDF for the developer settings.
Any help would be much appreciated
Anam

Hi Anam,

If you are using Rhino 6, then Kangaroo comes included in grasshopper, and you need to make sure you reference the same copy of the dll that it is loading. So unlike in Rhino5 where you would set it to the one in ...AppData/Roaming..., you need to point it to the one in 

C:\Program Files\Rhino 6\Plug-ins\Grasshopper\Components

awesome thanks Daniel that worked

:)

Hi all,

does anyone have an idea what the following error could relate to? It pops up with the C# component of Daniels definition. Could it be due to Rhino6/Win10, or is it something with my computer?

1. Error (CS0008): Unerwarteter Fehler beim Lesen der Metadaten aus der Datei 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll' -- 'Der Index konnte nicht gefunden werden.'

which roughly translates to:

1. Error (CS0008): unexpected error reading metadata of File 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll' -- 'Index could not be found.'

thank you!

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