Grasshopper

algorithmic modeling for Rhino

Good evening to everyone,
I would like to ask about attraction on the 3D surface (double curved surface). I have 3D surface(by loft function) and I would like to make a circle perforation on this surface, the perforation should be random in the size of diametres of the circles according to the attractors, so my surface would be somewhere perforated by big circles and somewhere not perforated at all. If yomeone of you already managed this problem, please can you help me, or if someone has this GH diagram, please can you share it with me? I would be very thankful. For better understanding of my strange explanation I attach my surface. Thank you very much for any help

Views: 1351

Attachments:

Replies to This Discussion

Hi Marek,

I haven't got a ready-made example, but I've done something a bit similar in the past at workshops. Here are some of the algorithms:

Creating Random, Non-Intersecting Circles:

1) Generate a set of planes in space (if you have surface points and surface normals, you can make planes from these)
2) Use a [Proximity 3D] component to find, for every plane-origin, the one nearest other plane origin.
3) Half the distance between every point [A] and the nearest point [B] equals the maximum allowed radius for the circle at point [A].



Scaling Objects Randomly Based On Attractors:

1) Create attractor geometry and find for every point the closest attractor.
2) Measure the distance to this attractor and run it through a [GraphMapper] object so you can easily convert Distance (input) to Scaling Factor (output).
3) Once you have a scaling factor [F], create a numeric domain with [F] as the upper limit.
4) Use this domain to generate a single random value, be sure to supply a different seed value for every random value you generate, otherwise you'll get the same random value over and over again.
5) Scale the object with the randomized scaling factor.


--
David Rutten
david@mcneel.com
Poprad, Slovakia

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