2024-09-21 12:05 PM
Hi!
Just got into Param-O this week, and it looks promising.
I'm trying to create an object with Param-O, where an "invisible" grid with z values is created and smaller elements are put into every point of grid.
So far I have this, see the image.
So, is there a way to get those yellow spheres up to the surface? Maybe a combination of Grid Points and Line Points? Method of Line Points alone could work, but there can be tens of lines, maybe even 100 or so. Therefore it's out of question.
Thanks!
Operating system used: Windows 11
2024-09-27 07:49 PM - edited 2024-09-30 06:00 PM
Yes, it is possible to do this in param-o with only the grid + basic math. (but it is easier to do in gdl)
Here the formula to calculate the z-coordinate (h) of every x,y coördintate
h = ((h11 * (x2 - x) * (y2 - y)) + (h21 * x * (y2 - y)) + (h12 * (x2 - x) * y) + (h22 * x * y)) / (x2 * y2)
h11
: height at (0,0)(0, 0)(0,0) (bottom-left corner)h21
: height at (x2,0)(x2, 0)(x2,0) (bottom-right corner)h12
: height at (0,y2)(0, y2)(0,y2) (top-left corner)h22
: height at (x2,y2)(x2, y2)(x2,y2) (top-right corner)x
: x-coordinate of the point for which you want to calculate the heighty
: y-coordinate of the point for which you want to calculate the heightx2
, y2
: coordinates of the top-right corner. = dimension 1 & 2
-- updated version--
2024-09-28 06:36 AM
Hi!
That is great, thanks!
I already started making it with gdl, and propably will finish it with it. But I will definately check out that solution of yours. I'm new to Param-o, and it looks nice alternative in some cases. Your solution will teach some more.
Thanks again!
2024-09-30 06:05 PM
Your welcome! This was a fun challenge, at first I didn't think it was possible in param-o.
There was another error in the param-o file which I have corrected and updated. Please use this latest version