algorithmic modeling for Rhino
Hi guys!
I 'am learning rhino.python these days. And I want to do a simple exercise. What I want is: increasing volumes placed on concentric circles( refer Image). I 'm very new at this. I can draw concentric circles but splitting them and placing increasing volumes is what pulling me down. And yes! what is I want to place these volumes not behind each other but rather at the center; for example, consider the outer most circle and its volumes and not consider the circle on the inside. So I want these volumes to be placed in the middle of the two volumes outside(i.e. on the outer most circle) and not directly behind it. Any help would be highly appreciated. Thanks!
Tags:
Replies are closed for this discussion.
Aditya,
I'd suggest you might start writing out some pseudocode to work out what steps you script will need to complete.
A quick look at the RhinoScript help file (found from the Rhino menu Help -> Plug-ins -> RhinoScript) shows there isn't a function to perform a PolarArray like the command in Rhino would achieve. Someone else from the forum might know if there is something similar with a different name and can point you towards it. None the less I couldn't find it.
So, we need a work around.
I understand you can already create the concentric circles that forms the base of the new geometry. From this you could perform a divide curve to get a set number of points around the circle. Following that you could use the points on each of your circles to create a box at each location of varying height which faces the centre.
Your best bet would be to write out some pseudocode and then start dealing with each step in your code, piece by piece. If post your script as you develop it you'll be able to get more specific feedback from myself and others on the forum.
Good luck.
Hi Matt,
Appreciate the response. I 'am attaching the script that I wrote so far. The problem I 'am facing currently is concatenating strings and integers to form "variables" in order to store values in them. I need these variables to be later called in for divide curve in order to get points to place the square volumes. kindly have a look. I googled on how to concatenate string and int and got many results and some success with: [for i in range(0, N): print( C + str(i)). But I want to store values( in my particular case the circle_id) so that I can call them back for for divide curve. Kindly look into it, I know , I 'am missing out on something. Thanks in advance.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by