I’ve written previously about my basic image sampler setup, and about how to make sure that your image sampler produces information with the proper aspect ratio. Both definitions were based on an initial grid of points, generated by ranges and domains. Today, I had a bit of trouble getting the definition to work for an image that was taller than it was wide. I’m still not sure what the problem was, exactly, but I found a work-around that I’m quite happy with. This image sampler sequence uses a referenced surface, with the same aspect ratio as the initial image, to generate a grid of points to be sampled. It’s a much cleaner definition, you can see:
Above is the old definition. Below is the new one.
UPDATE: Dividing the surface with Us and Vs simplifies quite a bit in the early stages of things, but as I move forward, I’m finding that it restructures all of the point data in quite a big way. I’ve got to wrap my brain around it first, but I’ll try to come back with some diagrams discussing the differences between the two approaches.
Swords into ploughshares, indeed. This definition turns the intersections of spears into a series of voronoi cells, and the results look remarkably like the agricultural patterns I saw in Hamburg this summer. Could these voronoi cells suggest fields and floodplains?
More orthogonally, one can use the intersections to create a variegated gridded field:
This component is a lifesaver. Euclidian Sort orders a list of points according to their coordinates–genius!
Here, I’ve turned it into a quick way to generate a line through a field of points:
This can easily be adapted to generate section cuts through a field of points (explode the interpolated curves, remove the longest pieces, and re-join the remaining geometry).
Where are your points? Find them in relation to a brep with this handy utility:
This is a second attempt to manage data generated by an image sampler. Here, a sequence of two bounding boxes is used to “capture” points with similar values.
This definition links a bar graph component to a dispatch sequence, enabling the user to sort values generated by an image sampler into discrete groups. My next step here will be to feed the dispatch sequences through a series component, rather than using list item to test for each group.
This basic Image Sampler sequence is adapted from a conversation between Luis Fraguada and Paolo Cappelletto on the Grasshopper3d Forum.
Download the definition here.