Grasshopper

algorithmic modeling for Rhino

Hi,

I am working with the python script to use GIS data in grasshopper. I am taking the center points of the geometry from GIS and connecting each of them to another set of points which I have specified myself (referenced in Rhino) through the closest point component. The result is like this:

and the definition is like this:

From there I want to group the GIS points based on which closest point they are connected to and so that each referenced point grouping is its own index. This might be getting into path mapper, with which I haven't had any success yet.

Any suggestions would be much appreciated.

Views: 5320

Replies to This Discussion

many thanks.

still one question. as you've probably noticed,
around the center points there are lined up another three point-groups.
how can the definition be varied, so that instead of the gradual increase
of finding the next points, the increasing should be reduced in three steps.
because the distance of the respective points of the point groups,
have the same amount to the center points.


thanks in advance!

CP and CPs work with a number of closest points to find. If you search a cloud of 5 points for the 5 clostest, you will get all the points in the cloud.

If you want do define distance thresholds, you can do so by calcualting all the distances, a SmallerThan comparison vs. the threshold and then culling all points below the threshold.

Input tree structure stays the same as for CP.

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