algorithmic modeling for Rhino
Dear all,
I was trying to create a figure ground line drawing (please refer to attached image). All i can think of was to create points manually and use lines to join them manually(which i think shouldn't be the case). Is there any other better way of doing this ??
Tags:
thanks Hyungsoo,
i did not know grasshopper can actually have background into it..
really appreciate the help. Thanks again
Hi Riccardo,
the final result my ground member and i were trying to create is to color the spaces between some of the lines to form a figure ground (please refer to the image)
To achieve something like that, you must follow this rule (I suppose):
- each line MUST go through the whole rectangle, so you can't have a line with and end "alone" in the middle of the rectangle
Otherwise you would get possibly two adjacent fragment with same color.
So each time a line trim the rectangle it make everything on "side A" to invert color, but everything on "side B" to not.
We can do this by creating a big enough triangle for each line, use that triangle (point in curve) to find when a fragment of the (center of) original surface/rectangle fragments are outside or not;
testing IF the total true/false (mass addition) for each fragment is an even quantity to determine black or white.
We can re-study this rule for the previous patterns here above, maybe like this (not tested):
- each point must be connected to an EVEN numbers of others points; but then I don't know how to apply the counting....
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by