Grasshopper

algorithmic modeling for Rhino

Curve on an Image into Rhino through Image Sampler??

Hi, I'm working on a project and wondering if it's possible to have a curve on an image, drawn in photoshop for example, turned into an actual curve in Rhino, through grasshopper.  

It may make sense from looking at the attached images, but currently I'm starting with a drawn image of a line, generating a bunch of points and using Image Sampler to see if those points are on the line.  That gets me the desired shape made out of points, but I'm not sure what would be the next way to go.  

I though about using Kangaroo to pull another curve towards those points, hopfully having the curve take its general shape, but I believe this would create the possibility of the curve folding back on itself or other undesired effects.  Anybody have any ideas on what would be the best direction to go??

Thanks!

Views: 3664

Attachments:

Replies to This Discussion

Hi Matt,

Do you want each strand curve to be represented or one averaged curve, like below?

Ning misbehaving again....

Attachments:

That's brilliant.  Thanks!  

At this stage an averaged one is what I'm looking for.  But for curiosity sake, how would you go an try to represent each strand.  Don't go ahead and do it, but in theory??

I think I would increase the resolution of the sampling points and then try and identify the lines from a Voronoi Cell that were representative of the intended curve and then simplify them. See Image

BTW I should say that I reduced your JPEG to a 2 bit PNG and got much more accurate results.

That makes sense.  Just to get rid of any artifacts or colours in between pure black and white?

Hi Dani, i hope you're doing and your kindergarten well. : D

a question this year on you.
how to do something like this?

http://www.grasshopper3d.com/photo/img-sampler-sketches?context=latest

regards

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service