Grasshopper

algorithmic modeling for Rhino

Is there a component that could collect a number in rhino and change it to the same number data in GH?!

I have a 2D topographic CAD map and i was wondering if i could turn it to a 3D surface in Rhino. the problem is all of the topographic lines are located in one single plane and the only factor that shows their height difference is the numbers written on each line...
i was wondering, is there any specific component in GH that gives us the ability to select a number in rhino, catch its data and turn it into the same number that could be used in GH in order to automatically give height to each line depending on the corresponding height number written on it?

Views: 520

Replies to This Discussion

Grasshopper itself does not support annotation objects (dimensions, text-objects etc), but it is possible write a small script which harvests this data. The question I have though it how do you know which number belongs to which curve?

--

David Rutten

david@mcneel.com

Thanx, unfortunately i don't have the knowledge of scripting :(
But i think it would be good to add a little component that could do so in newer versions of GH...
and for your question; well in these kind of maps, the numbers are located on or near there corresponding curves, maybe i could write an algorithm that could find the nearest number to each curve, retrieve its data and move it up according to its corresponding height number...
what do you think?!

But i think it would be good to add a little component that could do so in newer versions of GH...

Grasshopper 2 may or may not support dimensions and annotations, but no features will be added to GH1 any more.

If by finding the nearest curve to the boundingbox center of the text you can reliably determine the relationship then it's easy enough. Can you post a (partial if need be) 3dm file that has some of these curves and texts?

--

David Rutten

david@mcneel.com

sure David, here you are...

Attachments:

Only works if all the curves are at the same height, as it moves each one vertically by the indicated amount, rather than making sure the curve is at the indicated elevation.

I'm doing all the work in VB now, so the script is in fact quite large.

--

David Rutten

david@mcneel.com

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