Grasshopper

algorithmic modeling for Rhino

Normal Line From Midpoint Of Shortest Side Of Polygon

Hello.  I am a studio furniture maker and new to Grasshopper.  I have been trying to create a definition that will draw a perpendicular line from the midpoint of the shortest side of a 2D polygon intersecting itself. The resultant line would then be grouped to that polygon.  The definition would then allow me to set input an angle and rotate the polygon with that line determining that angle (the intersection of the perpendicular line and the shortest side being the center of rotation).  I have attached a jpeg with 3 irregular pentagons with their corresponding lines on the left.  On the right, for example, the polygons have been rotated 90 degrees. If anyone has done something similar and would care to share it with me, that would be great!  Thanks. 

Views: 4020

Attachments:

Replies to This Discussion

Chris,  I just added another Tree Branch and Data window so I could separate Inner Curves & Outer Curves.  I think I have it.

Rev6 has all of the curves separated out.  I also renamed the inner curves 'Middle' and 'Central'.  You can change the naming as it won't effect anything.  Those were the only changes I made.  If I understand you correctly that was what was needed, otherwise let me know.  I figured you needed the grouping to use RhinoNest but I wasn't sure how you were handling the laser cutting once you had everything nested.  It's nice to work on a question that has a physical level of feed back. 

Attachments:

Chris,  Working perfectly.  Just did the whole pattern. takes five minutes and that beats five days!  Check your message inbox, I sent you a note.  Since I am starting to get a little proficiency in GH, I am going to work next on a tool that will mirror and rotate text in place because I have to flip tiles and sheets upside down frequently and because the laser does not cut at 90 degrees, it imparts about a 3 degree bevel due to focusing and narrowing of the beam. This is something I can take advantage of because if I cut an inlayed piece up and the hole it goes into down, I get a bevel to bevel inlay which gives me a tighter result.  I have been reading numbers upside down and that is okay but it is slow and can lead to mistakes.  I think I can manage this.  Best,  Aaron 

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