Grasshopper

algorithmic modeling for Rhino

Hello guys,

I am a beginner to GH. I would like to draw trapezoid towards the center of the hexagonal grid. I fairly have an idea on what to do. I can probably draw lines towards the center point of the hexagon then draw circles in the center points of hexagon. then I can find the intersection of these two curves.

My question is on how to draw lines towards the center?

Thank you.

Aravind

Views: 2354

Attachments:

Replies to This Discussion

I am able to get the intersection points like in the photo attached here now. but I am not able to draw lines between like, like say to get a tangent.

This should help.

Attachments:

Thank you so much for the reply. But I have circles in the vertices of hexagonal grid.  I need to have a trapezoid from the vertices of the intersection (circle and hex grid). Something like I have attached below. So when the radius of the circle increases the width of the trapezoid get narrow and vice versa.

Thank you once again.

Attachments:

This is rather brutal but gets the job done?  Please post your GH code the next time you ask a question!

Attachments:

Thank you so much. 

Thank you. I would like to have the trapezoids between the circle not over the circle. *I have shade the regions where the trapezoid should be. i tried to tweak your wiring. But without success.

Thanks a lot.

Good luck to you sir!  I've had my fun with this one.

P.S.  Just use two circles in the center... one more slightly smaller than the one I made.

IT WILL BE HELPFUL IF YOU CAN EXPLAIN THE LOGIC U USED WHILE WORKING ON IT.

THANK YOU.

Start at the end and work backwards; use the 'Display | Selected Only Preview' feature to see what each component produces.  Connect outputs to panels to read the data trees.  Copy this 'vuTreeList.gh' into your code and examine the trees and lists with it.  Explaining every step of this one is beyond me today, sorry.

Attachments:

Here you go.  The changes I made just now are all in the purple group:

  • 'Shift' to get a different pair of lines to make the trapezoids where you want them.
  • add a slightly smaller circle who's radius is defined by a mid-point distance.

You can hide the circle you don't want, but it's still needed for construction purposes.

Attachments:

Used one slider for radius of outer and inner circles, then animated it:

Hi Aravind, here is a bit simpler approach based on the ExtendCurve and CurveClosestPoint components. No need to use the (relative) heavy intersection components: P.S.: I wasn't sure you need the circles on the hexagon corners for your design. If not you can just delete the group in grey.

Attachments:

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