Grasshopper

algorithmic modeling for Rhino

hi everybody:

i´m starting with the c# componnents, and a part of a bigger script didn´t run, and dont know why, here is the part that is not working, i´m trying to rotate all the lines of a list, with a single line its work (simple), but not with the list line.

somebody can help me??????

Views: 743

Attachments:

Replies to This Discussion

Hi Jorge,

Rhino.Geometry.Line is a ValueType (struct). When you add a Line to a List<Line>, you actually add a copy. When you get a Line from a List<Line> you also get a copy. I attached how I would solve this problem, but of course there are many ways to approach it.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

thanks so very much david now it works perfectly

Oh, this is great. I just run into the same problem, and this solution was posted yesterday!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service