algorithmic modeling for Rhino
hey guys
i have a surface of a box that i've divided to a grid of points. i have another box ontop of this surface that ive extracted a closed wire boundary from its bottom surface. i want to define that half of the points from the grid should be inside this line boundary.
i'm trying to use the inline function but having trouble and i dont know where exactly.
Any advice?
Tags:
and i forgot to mention that i want to use galapagos to find all the different situations for this to happen- an optimization
I believe you are referring to the 'Point In Curve (InCurve)' feature?
It seems to be working correctly, I think you're just using the results wrong.
What you want to know is the length of the list of points from 'SDivide' (44) compared to the length of the culled list of points from 'InCurve'.
I cobbled together a few minor components to get the absolute value of 1/2 of the total number of points (44) minus the number of points found by 'InCurve' - when that is zero, it should be a valid solution?
I hooked it up to Galapagos but am not sure how to use it...? If you get it to work properly, please re-post?
P.S. I disconnected the 'Z' input because there is no point wasting time in Galapagos exploring solutions where Z != 0.
P.S. Playing with Galapagos more now, the solution above works! In addition to eliminating 'Z', it helps to set the X/Y slider limits to maximum reasonable values, beyond which there are no further solutions. Max 'X'=31 and max 'Y'=6, for example. It is also more interesting to set the minimum slider values to allow more solutions - min 'X'=-1 and min 'Y' = -6, for example.
Modifying the number of surface divisions (even or odd) makes a difference too.
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
© 2024 Created by Scott Davidson. Powered by