algorithmic modeling for Rhino
Hi, I am trying to develop a parametric weave between pegs in order to use a Robotic Arm to weave around this pegs the structure made with grasshopper and rhino. The current issue is that I think my script is quite large for a lack of better understanding of the program.
The idea is that we created a grid as you can see on the script, in this grid we then place pegs, we find the center and then create a radius around the pegs for the robot to not hit the peg but pass around them, we created a divide component to divide the circle in a maximum of 6 points in order to alter them and edit them if the thread is getting to close to the peg, here is were we encounter the first issue. If we change the number of divisions less or greater than 3 ( the default ) we have to weave everything again and add the extra points.
First Question, Is there a way to tell the component to always weave from 0 to the last point on its list independent of how many points it had? Meaning it goes 0 then 1 then 2 then 3 if 4 points, or 0-1-2-3-4-5 if it has 5 points.
The second question is if there is a way for the weave to always go when in its own list from 0 to max, but if its trying to weave with another list then tell it to weave between 0 and 2 but the closes 0&2 always so it does not try to cross the pattern.
----------------------
A last question but not as important, we created 4 pegs and made the script for them but lets say we wanted to add 1, 2 or 3 pegs more, is there a way to make the script more optimize as to not have to go back and re make every component/weave too include the extra pegs.
Uploaded are the 3D File ( Excluding the Robotic Files/Components ) and the GH File, I will try to upload a couple of drawings if nessesary.
Current Issues:
Our current trial is a simple stack weave, later on we would like to try bending the pegs in different ways, heights to make the weave more interesting but for now we are trying to understand the more optimize way to make the first step stacking work and then jump to a more complicated form.
------------
I place a Create Geometry Section in the script, the idea is that one could Move/Alter the Pegs and create different shapes and this would update/optimize to the best weave, but as of now all it does is it wither breaks the weave, or crosses in the center.
Any help is appreciated. And if there is a better way to do this, Please do not hesitate to edit the script, I will then follow the changes to understand them.
Tags:
Any help with this :( still stuck on figuring a way to make it more intelligent.
Thanks in advanced,
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
© 2024 Created by Scott Davidson. Powered by