Hey! I’m a new Grasshopper user and I’m having trouble using the image sampler tool to generate a perforated surface with circles using a
non square image. All of the tutorials and guides I’ve seen on doing this do it with a square image and I’m using a rather long rectangle, I would like for the whole picture to be displayed in the panel, or at least be able to choose a certain square of it.
I’ve got this as a reference for those who would like to help.
This is the picture I’m using as reference:
I actually have to do one of these this week as well.
The image sampler will probably be lost in my modified copy of your file. Old GH bug. You must copy/paste and reconnect the one you have. Your Srf param was not internalized so I added a PlaneSrf instead. That needs to match the image size ratio, and ideally allow changing resolution while keeping the ratio of horizontal to vertical the same (not implemented below).
ImageSampler_GarfieldStation_CTA_2018Mar21a.gh (21.6 KB)
I’m gonna try tweaking this one, maybe I’ll get a good result. For now I got this working (but in a square shape only) and plan to use it as the standard tile for the panel.
Maybe this could also help:
One more question, Adam,
I am trying to use boundarySurface to generate circular surfaces, and use them to punch holes on the long curvy surface via command Regin Difference, but it doesn’t work somehow. Is there any other way to punch those small circles on the surface underneath?
Here is a R6 version of Joseph’s script.
Joey-O-ImageSampler-R6.gh (128.1 KB)
Gotcha, thanks. Now my next step is to actually “imprint” those circles into an editable 3D surface, how do I achieve that?
There is a planar surface in the definition. You can cull the edge holes (or not) and its practically ready to cut (cnc/laser/water jet)
Hey, got it! Thanks a lot everyone.