algorithmic modeling for Rhino
Trying to wrap my head around this script I'm working on...
The basic idea is that I have a surface (heightfield) divided with points based on some inputs, including a bezier graph. What I'm trying to do is populate the "grid" with circles composed of radi based on a few parameters:
1) The closer the heightfield points are to the bottom bounding box point should result in a larger circle. IE: The less the Z value difference = a circle with a larger radius
2) I also want to make sure the circles dont overlap. Therefore, I'm thinking that these circles have to be capped at a MAX distance that = 1/2 the distance to their closest point on the grid (assuming the circles midpoint corresponds to its grid point).
So far, I've determined the differences between Z values for each surface point (Surface Point Z value - Bounding Box Vertice Z Value). What I'm kind of clueless to is how to determine the closest point to every grid point based off of the entire grid, and how to use that collection of distances to determine the varying circle radii.
I know its pretty straightforward if I have a referenced point, but theres gotta be a way to determine what the closest points of every grid point are.
Any ideas/takers? I've included the grasshopper script and rhino file below...
I've got an end goal, but thats not really the here, more so the "there" (whenever I get "there"!)
Tags:
How about the attached?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Many thanks for your quick response Dave...sorry about the delay on my end, been a crazy week. It looks like that script solved it, I'm gonna take a minute to study your computation of the distance to the closest neighbor, because thats really where I was getting hung up. Thanks a milli for labeling the parts too, really great.
Ok, so I've made some progress and am at the point where I need to essentially "panel" the circles as perforations onto an intended surface.
Goals:
1.) Panel the surface - Done
2.) Pattern the circles across the panels in a way such that the scale is 1:1 (this is essentially an exploration into a potential "sun screen")
3.) Perforate the panels using the patterned circles
I have the surface "panelized", but I'm facing difficulty trying to map the circles onto it...any ideas? Files are attached for reference...
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by