Grasshopper

algorithmic modeling for Rhino

Hi Everyone

Any thought on what would be the simplest way to cull out every other layer/height of contour curves from a map. My current though process at present is to boundary box the contour curves then use box corners to get lowest point data take the z from this and the create a series at double my contour spacing to to uses to check the z height of each contour crv and decide if it is at one of these heights and then cull it...... though this is where i am lost as i cannot get the Equals Component to check all numbers in its list againist each number comming in even with tree's or how to script a component to do this.

Thanks Matt

Views: 2809

Replies to This Discussion

This is quick and dirty, but if your contour elevations are integer values you could create branch names after sorting and then decide which contours you want to keep based on branch name.

Hi Matt,

does each elevation contain only a single contour curve, or could there be multiple contours per elevation?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David

Each Eeevation contains unknown amount of contour crvs, it would also be almost impossible to select them in the one elevation layer at a time.

@ Taz thank for the code but i seem to be able to break it when i added addtional metaballs in a shuffled order to try to recreate how map would enter GH as file is not on this computer. I will have a play and see if i can repair it with new addtions.

Thanks
Matt
Oops. A little too quick I guess. Here's the file with multiple balls... Graft after sorting.

Attachments:
Thanks Taz,

That seems to have done the trick. Even with the addition of a Jitter Component after the merge to simulate random order of selected Contour Crvs on Map when they are selected in Rhino.

Will test it on the main Map file in the morning though think that should be fine.

Thanks Again
Matt

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