Grasshopper

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:

  1. We used a Circle to create a radius around the pegs, and then depending on the division of this circle we then weave through it and across to create the weave polyline. This points are then sent as planes as the robot only understands planes for it to follow. The issue is that if we increase the number of divisions it breaks the weave pattern.
  2. It seems that we weave is only 2Dinensional for some reason and it does not goes to the next level once it completed the level below, meaning its only closed loops instead of a single loop.
  3. If we add more pegs than the 4 original, it breaks the pattern and we have to remake modules for every single extra peg and then remake the weave, Is there a way to make this faster/more elegant?

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.

  • Changing the Divisions of the Circle breaks the weave, as of now there are 3 Divisions and the weave goes 0-1-2, but if you increase it it would not go from 0-Last Digit, but try to find 0-1-2 and weave incorrectly.

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.

Views: 529

Attachments:

Replies to This Discussion

Any help with this :( still stuck on figuring a way to make it more intelligent.

Thanks in advanced,

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