Grasshopper

algorithmic modeling for Rhino

I am working on a project and my goal is to optimize a tube structure (of a bridge).

I am almost done with the geometry and now I'm working on the diagonals between the vertical ring sections. The vertical ring sections are polygons and the number of faces is a parameter. Another parameter is the distance of the diagonals. For example, a diagonal can connect the next corner point of the polygon over the distance between two vertical ring sections. But the parameter brings the possibillity to increase this distance and for example connect the next corner point of the polygon over a distance between 3 or 4 vertical ring sections.

I managed to create the diagonals in one way. However I can't find a way to draw the diagonals in the other direction (creating crosses).

Can anyone help me?

Views: 811

Attachments:

Replies to This Discussion

Hello Stefan,

if you split your points into separate lists, it will be easier to connect them just by using [shift list]:

Attachments:
Thank you very much! Indeed it is easier by making separate lists :D
Is there also a way to start the diagonal only at the corner points of the polygon? For example if the parameter is set to a polygon with 6 faces, 6 diagonals start from the corner points and can revolve around the tube. These diagonals then have to 'skip' for example 3 or 4 vertical ring sections before reaching the next corner of the polygon. In the current model a new diagonal starts from every division point..

I am afraid I can't visualize what you are saying.

Could you post a quick sketch of it?

Sorry for the poor explanation.

In the sketch below the problem is illustrated. In the current model also the dotted red diagonals are included. But when setting the number slider to 2 should mean that the number of diagonals doesn't change, only the number of polygons they will pass before reaching the next corner point of a polygon.

When setting the slider to 6, in the current model 6 extra diagonals are created in just one face of the polygon. But it should be the same amount of diagonals, but only they have to pass the next 6 polygons before reaching another corner point of a polygon.

With corner point I mean for example if a polygon has 6 faces, it also has 6 corner points, so there should be 6 diagonals.

ok, I get it now. I have 2 questions though:

1. Do you still want the ability to divide the polygons' edges and create horizontal bars at these points? (green lines in the following image...)

 

2. What should happen to the diagonals if you have, let's say, 4 polygons and you set the [skip polygons] slider to 2?

...this...?

...or this...?

...or something else?

thinking about it, I believe that the most reasonable approach would be:

-create diagonal bars on every frame (don't skip anything)

-and then have an extra option to divide each frame into sub-frames (create extra polygons between the existing)

this way you will never end up with smaller diagonal bars at the last frame or with diagonals that don't end on a corner.

what do you think about this solution?

Indeed that would be the best solution! In that way every possible diagonal can be created without ending up half of a polygon at the end of the tube. When the 'skip polygon' is set to two, one extra polygon will be created between each polygon :D Thank you for the idea, I hadn't thought of that option!

The horizontal bars aren't necessary because they won't improve on the total strength of the tube :)

I believe it works as intended now.

Attachments:

You are absolutely amazing! :D

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