Grasshopper

algorithmic modeling for Rhino

Hi, I'm trying to do a closed Sweep Two Rail in Grasshopper, with the Maintain Height feature. It works perfectly in Rhino, however, when trying to do it with the Sweep2 component in Grasshopper, the Same Height (S) property does not work, even though it is set to True. Hence, I tried to do it in Python. When testing out the Python script, it shows: "Execution completed successfully", however, no BRep is returned from the script. The direction of both rails is correct, and the first cross-section curve is placed exactly at the start-end point of both rails (image attached). Any suggestions?

I'm attaching three images: One shows the results from the Sweep2Rail command from Rhino, and the Sweep2 component from Grasshopper, the second one shows the direction of both rail curves, and the third one shows the Python script. I'm also attaching the definition with internalized curves.

Views: 1651

Attachments:

Replies to This Discussion

Definition

Attachments:

I think the function you're looking for might be this one. See attached.

Attachments:

Thanks Anders, that does work, one step closer =)

However, I need to maintain the height (as shown on the Rhino viewport in the SweepTwoRail Failed.png image), and this function does not allow to do so, do you know another function with that possibility?

In that case you probably do need the SweepTwoRail method. Looks like Marios has got you sorted out here.

Thank you for your reply Anders. Not really though, Marios method does maintain height, but not with periodic curves, which is my case. Turns out there's a bug (on RhinoCommons, or the SDK, or somewhere like that) which prevents the Sweep2 function to work both the closed sweep and the maintain height properties at the same time. As of now, I know I can't use the current Sweep2 component, I can't use the Old Sweep2 component, and I can't use the Python component to make it work. I am hoping there's still a chance with either the VB Script or the C# Script components, but I have no idea how to script that.

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