Grasshopper

algorithmic modeling for Rhino

Hi All,

I've been through plenty of threads covering this but i'm just not getting it. I've spent the last two days trying to make the normal's of the flanges of my panels go in opposite directions to each other to facilitate analysis in ansys. 

My thought was that I'd create a line extending out from the center of the flange and if it intersected with a panel then the panel it extended from needed to be flipped. Unfortunately i'll be buggered if i could get it to work. I seem to be struggling with managing the data, at first the only intersection point I was getting was the start point of the curve on from the face it was created, so then i thought I need to flatten one of the streams so that each surface is looking for an intersection with each curve but that doesn't seem to have worked either. 

Any help massively appreciated as i'm really at the end of my tether.

Thanks

Rob

Views: 326

Attachments:

Replies to This Discussion

Could you use something like the attached?

Assuming all the panels are roughly this open box shape, you can compare normals at the middle of each face with the vector to the centroid of the vertices.

Attachments:

Flipping (hah!) fantastic, thanks Daniel. You wouldn't believe how long I've been trying to get this to work...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service