Grasshopper

algorithmic modeling for Rhino

Hi all,

I need help about a problem.
I want to realize a circle with a predefined diameters.
Each of these diameters should be connected with a predefined "extrusion length" of my circle. (See image below).

Example: when i select diameter 12mm automatically extrusion length will be 17mm, when i select diameter 15mm automatically extrusion length will be 16mm.

Can you help me to understand how can i realize this?
Thanks
Luca

Views: 925

Replies to This Discussion

You can do it like this....

More precisely.... the split domain will split the output from your checklist becassue a domain is made up of two parameters, it hi-jacks the hand built-in features of GH that understands that something that looks like {0,0} might be a domain, point, vector or colour.

if you had three parameters you could use the split point co-ordinate {x,y,z}

if you had four parameters you could use the split RGBA {R,G,B,A}

If you have more than 4 parameters from the single input you would use split text and then control your indices from each path.

Thanks for your suggestion.

I tried to reproduce your def but: how can I send diameter and extrusion values to relative commands of circle and of extrusion?

I need to select (for example) only first value 12 on Value List and, automatically, obtain 17 in extrusion value, but these parameters should be send to relative controller (radius of circle, and amplitude of the vector for direction of extrusion). Thank you again.
L

Is this what you need.... you can extract the circle's normal by connecting a vector after it.... that means each circle knows its own extrusion direction. You then just pass the vector its amplitude.

to make more circles just input more planes into the circle. and input the same number of domains. i.e 4 circles needs 4 domains and 4 planes.

It looks to me on your original screenshot, that you intend to orientate the circles on a surface.... If this is the case you would use the surface frame to pass to the circle's input Plane.

If you are planning to generate many circles on a surface you can use the SurfaceFrames component which will generate a UV grid of planes.... (you would need to generate the same number of predefinition-domains and ensure that they have the correct branch path indices)

hope this explains it...

Attachments:

Creative but overly complex, perhaps?  Not a good idea to pass values through a text panel; better to connect panels in parallel instead of in series.

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