Hi there. Sorry for bothering. I want to do surface morph/replace shape but following certain value. My inspiration is Touch Wood, Zentrum Architektur Zurich Bellerive (ZAZ), 2022 from Gramazio Kohler, ETH Zurich.
as you can see here the shape is replaced following the value of brightness from evaluation of image sampler.
If the pixel/block falls on black, it will replaced with shape A. It it falls on 50% brightness, it will replaced to shape B and if it falls on 100% brightness, it will replaced to shape C. So, i’ve already preparing the point, grid and box. Now i stuck for the next part which is evaluation.
Gramazio recreate.3dm (156.3 KB)
Gramazio recreate.gh (170.8 KB)
If you have other alternative that are more effective, feel free to share! Your response are much appreciated!
first you want to evaluate to whole picture. so put the points to that domain:usualy 0To1. did so by creating a boundingbox over all points, since they are in a plane i get a flat box that can be used for surface closest point.
remap the numbers (your picture does not go to total black)
check the result : smaller than y → use 0
smaler than z → use 1
else → use 2
these are used as indices to select from the list of objects i want to place
could use “boxmorph” but faster in this case is “orient”
1 Like
Thank you for giving me a cluee! This explanation is so useful. At first i have a thought to use box morph but it’s truee it more slower. I can’t figuring out the alternative method other than using box morph. At my second plan is using flow but seems slow too. I also confuse which side should i wired to the picture sampler. Again thank you so much for the response 
so if i want to add new geometry just adding at here right?
or maybe i have to adjust at expression too ?
yes you would need to change both.
but the expression will become unreadable soon for more objects…
or we go for a solution that can work with a changing list length
Gramazio recreate_jvs02_unknownLISTLENGTH.gh (164.3 KB)
1 Like
i think i faced a minor problem
as you can see here there are empty geometry that caused by the data move/shift a little bit (i just suspecting). How can i encounter the problem? Is it either reparametrize? or maybe other solution? But so far the arrangement is achived as what i want
post your file
internalize geometry
make the problem reproducable
my last definition can have problems, when a value is a the border of 2 domains…
Ouhh i see. Does that means the system got a bit little confuse where to put either at domain A or domain B?
you did not internalize the geometry
can not see on my screen what you screenshot
let me resend my screenshot
i need the geometry.
it is not reproducable with my dummy objects
here the attachment with rhino file
Gramazio recreate 2.3dm (47.3 KB)
Gramazio recreate_jvs02_unknownLISTLENGTH after.gh (180.0 KB)
the geometry in the rhino and my bad because i didn’t send you the rhino file since i do a geometry in the rhino.
my definition assumes that all 4 objects are located in xyz = 0
so the source plane for the orient needs to be adjusted
Ouhhh i see. so in this cases i need to relocate all my geometry at (0,0,0). let me try
ITT WORKSS!! Thank you so much for the help!
or… you generate the individual source planes in GH based on the actual position:
Gramazio recreate_jvs03_individual_cource_planes.gh (165.1 KB)