Grasshopper

algorithmic modeling for Rhino

I was wondering

Can I select (from a bunch of lines) lets say the lines only in the X direction and leave a side the one in hte Y direction???

did I explain myself?

happy new year to all!

Views: 1221

Replies to This Discussion

Get the tangent vectors of the lines, compute the angle between the tangent and the X unit vector, if the angle is very small, then keep those lines. I.e. compare the angle to a small value using the Smaller Than component and then use Cull Pattern to remove all lines that deviate too much from the X unit vector.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks guys

I did what you say but really simple just for what I need.

but is not working!

its only selection a few of them why??

you can see the picture and its only selection haldf of them the yelow line its the direction I need

but its not selction all of them

thanks

Attachments:

Also please post the curves.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks master! but I got it it was because of the curve direction. so after converting radians to angles I realized that I had to include an other value to the cull pattern.

I will post the really simple def soon I am right now dimensioning millions of lines while I answer this post

thanks

and happy holidays to everyone!

Yeah I figured the same. As long as your filtering direction is parallel world X or world Y, you can use an Absolute component to fix it:

I also recommend using Smaller Than rather than Equals in case you have slightly messy data.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

mmmmmm yeah! yours its little way to advance for me! :/ 

I honestly have a lot to learn still.

but thanks for the comments.....its jutst that sometimes its too much stuff for my little head I need to keep valance between my real life and the computer.

happy hilidays to you david! wish you the best! even though you have it!

Attachments:

Sorry... I couldn't resist.  Advanced but ultimately simple.

YES it is!

thanks chris

happy holidays!

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