Grasshopper

algorithmic modeling for Rhino

Hi to all,

I'm new here and I hope this is the right section to post this question.
I'm learnig GH by my self and I'm not able to solve this problem.


What I need: a definition to create a kind of ring by a given diameter and some shapes.


What I've done:
1. diameter definition: to find the final object diameter

2. rails definitions: from a initial rails and diameter definition I've find a scaling factor
in order to create the final rails with the same form of initial rails but with the wanted distance from the center.


I find the scaling factor using the ray and the distance of a projected point of initial rail to the plane XZ


3. shapes definitions: like the rails definition. I used more than one shape because sometimes I need particular forms along the path.


The sweep 2 rail component gives me a no good result


I tried the options inside the components in order to manipolate the data, but I don't found the solution.

If I bake the final rails and shapes, the sweep 2 rail in RH (selected object) works well, but in GH no (red object).



I attach the RH and GH files for all who can help me
Thanks

Filippo

Views: 1384

Attachments:

Replies to This Discussion

Hi Filippo,
the first profile curve needs to be at the rails' start point(s), in this case at the 'bottom' of your rails. You could accomplish that by Shifting the current list of profile curves by 1, with wrap option set to True. Or better: re-attach the curves in the correct order.

Attachments:

Hi Pieter, thank you for the reply.

I've attach the curves in the correct order and I've solve it. Not only the first profile was in the wrong position, but the order of all too.

Thank again

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