Grasshopper

algorithmic modeling for Rhino

hello all,

I want to draw a cloud of points in a shape of grid(X,Y) in grasshopper

but i want to be able later to pick one point manually from the viewport.

my problem is that what i draw via grasshopper appears on the rhino viewport, but i cant touch it like it doesnt realy exist. for assigning points for example....

thanks for your help.

Views: 578

Replies to This Discussion

You cannot select Grasshopper geometry manually. Rhino is not aware of Grasshopper geometry and is not able to take it into account during selections.

If you want to support manual input, you'll need to figure out some other mechanism, for example by drawing polylines by hand, importing those (for example using the Geometry Pipeline object), and then testing your points for inclusion.

ok, so is there a simple way to make XY grid of points and connect all the points with lines?

but in rihno.. and then i will assign the points and the lines to grasshopper

I would suggest:

1. Create (or reference) the points in GH obviously sampled into a collection (if they are random: List, if they are "grid" like: Tree).

2. Do some Delaunay triangulation (or a Ball Pivot one) in order to connect them.

3. Now ... if you want to "pick" (via some slider who's accessing the point via his index in the collection) a particular one and modify it or remove it from the collection (or whatever) ... that's rather easy but only via code.

Notify if you want some example (C#).

For instance this capture refers to a "similar" situation: A surface is divided, then points (centers) are selected interactively (i.e. "manually") and added into a collection (a delaunay triangulation follows - also via code), then points can been deleted, moved etc  on a per individual point basis. Then the current collection is stored [persistent data] as a variant in a parameter (Note: variants shown are "stacked" vertically for viz/clarification purposes on a LIFO/FIFO basis).

After storing the variant ... you can start doing some other. Obviously you can delete/recall any variant desired or reset the whole procedure.

 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service