Grasshopper

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 ?? 

Views: 748

Attachments:

Replies to This Discussion

You can change point positions by changing seed number.

Attachments:

thanks Hyungsoo, 

i did not know grasshopper can actually have background into it.. 

really appreciate the help. Thanks again 

If you want to skip nearest points, you can do 2 times closest points with different quantity and then do a set difference.

You should provide some more specifications of how you want your output.

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)  

Attachments:

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....

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service