Grasshopper

algorithmic modeling for Rhino

Sweep 2 Problem:

I have attached a Grasshopper definition, a Rhino file and a screen-shot of the problem area. Essentially I have a set of curves constructed from points. In one instance I was able to use the Swp2 button to successfully sweep between 2 rail curves using 1 section curve. In the other instance with the same section curve and 2 different rail curves, the Swp2 button does not produce a surface, (as you can see the button also does not show signs of error). Have I hit a bug, have I missed some crucial step or piece of input?
Any help appreciated.
Thanks, Eli

Views: 7646

Attachments:

Replies to This Discussion

try inverting your connections, connect the item as r1, the bzspan as r2, and the curve on the S input, and flatten the item, it worked when i tried it,

diego
Attachments:
Diego,

Thanks for the feedback, of course it worked. I had been trying to work around this for two frustrating days and somehow never hit on that particular switch.

Best, Eli
I also had this issue..another step that came up was the order and first point which the curves were made. If they are not aligned, the sweep2 component will turn grey with no errors...but no output either.

Just add the flip component to one of your rails and it will resolve.

just another thing that may go wrong with the sweep2 command.

Paxton
dear,

i still have the same problem.
No sweep surface.

can you hel me with this? I've attached the files

Thanks a lot

roberto
Attachments:
Roberto,
It seems that the sweep curve must be located at the starting points of your rail curves. The solution for this is simply to select borth rail curves in your Rhino window and type the command "flip." Alternatively you could use a flip button in Grasshopper, but for something this simple it doesn't seem needed. I have uploaded a corrected Rhino file that should work with the grasshopper script you had.
Best, Eli
Attachments:
great, thanks a lot!

but can you tell me how can i understand what's the direction of my curve? because this file was a simplification but i have a much complex file in grasshopper and the lines derives from other commands...

Thanks

Robi
In Rhino, if you have a curve, you type the command "Dir" to display the curve normals, which will tell you the direction. I'm not really sure that there is a similar command in Grasshopper. However the curve direction will generally go from the start point of the curve to the end point of the curve. There are would be a number of ways to visualize this vector by building a small definition, take a look at the attached files to see an example that might help. Notice that the second set shows the effect of the "Flip" button, which can be used to flip curves that are not going the direction you would like.

Eli
Attachments:
thanks eli

it seems the direction is ok but still sweep 2 doesn't work in grasshopper even if it works in rhino (flipping the direction, as you did).

here is my file.
i tried to isolate the command sweep 2 in the bottom-right side of the gh file.

Thanks for you help
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service