Grasshopper

algorithmic modeling for Rhino

Hallo,

I want to create a diamond shape from 2 triangles. The corners have a particular degrees that stays the same at al time. each triangle has to be parametric from the center, so when I change one.. the other has to adapt. At the corners I have place cirkels that move when i scale the totals shape (diamond). I tried to achieve this with the triangle component, but then i cant place the points at the corners to act as an reference plane of the cirkels. Can anyone help me with this?

I've added an image to make my story clear.

(i'am new at grasshopper, so any help would be appreciated.) 

Views: 1794

Attachments:

Replies to This Discussion

Your description is not entirely clear to me.  Here is some code that allows you to set the size (radius) of the equilateral triangle (the top one) while the bottom one scales with it.  Both triangles retain fixed angles at all vertices.  The radius of the circles is set with a separate slider.

Attachments:

Joseph thank you for replying. This works great...

one another thing:

I would like to manipulate each circle individually. The reason for this is that I have five towers, on every corner and the towers are also parametric. So I need a method like "explode" to get the points of the corner so I can assign the points as base plane for the circle (which eventually becomes a tower)   I'm new to GH and parametricism, so my vocabulary on this is very poor. Hope my description is clear now.

Yes, your description of the problem is very poor...  I don't see any towers, that sounds like an irrelevant detail.  I see four circles, not five.  There are four points connected to the 'P' input of the 'Circle (Cir)' component; if you connect four 'Radius' sliders to the 'Radius (R)' input instead of just the one shown, you can control their radii individually.

I just told you that.  The four points are connected to the 'P' input of the 'Circle (Cir)' component in the code I posted.

I understand that. But the problem is when I apply the move component al of the circles move (see image 1), that's because they are still linked in the "cir" component. What I need is shown is the second image. I have to extract single points from the "disc" component. I surfed on the web, but couldn't find anything about it...

Thank you for your help.

found it....tnx for your patients and help

Only three of the points come from 'Disc' - the discontinuities or vertices of the top triangle.  The fourth point comes from the 'pA' output of 'LLX', the Line-Line Intersection.

You can use 'List Item' to get the points or circles anywhere along the chain of components.  In this case, I would use a single 'Move' or 'Extrude' component with separate sliders for the 'Z' values:

Attachments:

thanks,

because I'am new to GH i do reverse engineering to learn how the components  works and what it does.

by the way...Happy new Year!

and thanks for your help.

This one uses a 'ratio' slider (zero to one) that sets the circle radius as a fraction of the polygon (top triangle) edge length, so the circles keep the same proportion as the triangle size changes:

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