Grasshopper

algorithmic modeling for Rhino

hi all 

 

i have this chart since 

x=f(b,h)

Y=g(b,h)

and i have two condition 

if the point ( the intersection point x,y) is inside the red polyline the function is safe , if not safe change the value of b or h 

Views: 239

Attachments:

Replies to This Discussion

Well if you convert your pixel image into geometry you can test for inside/outside using point/curve inclusion. Or if you process the image so that the entire interior of the graph is one colour and the exterior is another colour, then you can use the Image Sampler.

If all you have is this image and no way to convert it, it becomes a lot more complex. You're going to have to walk in small increments from the sampling point to the edge of the image (presumably in a radial fashion) and figure out how many red pixels you encounter along the way. That's going to be slower and less reliable.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service