Sweep2 rails: edge continuity and/ or Blendsrf component

Hello,
I am looking for an option to create a 2 rail sweep in Grasshopper with an option to set curvature continuity to G2 for the rails. Is such a component available in a plugin or with custom code?
The same goes for a Blendsrf component with inputs for G!/G2 like you can find in Rhino, is that available somewhere too?
Thanks in advance!

G1 meaning tangency and G2 curvature?
There is an api method that can be called.


I’ve put it in this for you.blendsrf.gh (51.2 KB)

no idea about sweep2 tho

2 Likes

That’s great!
For the last 45 minutes I’ve been trying to rename the inputs, because I use full names and that makes it easier to remember if I save the component for reuse. I couldn’t get it to work with my names despite replacing them in the script itself… :confused: Would you be so kind as to rename the inputs like this:

blendsrf.gh (49.0 KB)

try this

4 Likes

Awsome, I am going to use this thing like crazy! :smile:

@Will_Wang if possible can you please have a look at this.
I try to use blendsrf on this example but with didnt work as expected :frowning:
image
Any ideas how that can be solved usingyour script?

Thanks in advance

blendsrf_gsy.gh (10.4 KB)

it seems to me that the RhinoCommon call can’t handle singularities at the two ends where the edges meet. Not sure who would know better. Maybe @dale

Hi @g.synetos,

If you bake your geometry to Rhino and then run the BlendSrf command, do you get the results you expect?

– Dale

@Dale yes it works as expected.

@Dale do you have any idea why that happens, and do you have any alternative solution how to achieve the desired result?

Hi @g.synetos,

I am able repeat the problem, and I’ve opened an issue.

https://mcneel.myjetbrains.com/youtrack/issue/RH-62323

The only alternative I can provide at this time is to use this version of Brep.CreateFromSweep. Include the points where the edge curves intersect. You’ll need to cook up at least one shape curve. You should be able to use Brep.CreateBlendShape to do this.

– Dale

Thanks @dale

Is there any example on how i can use these functions?
While i m fluent with python, i m not familiar at all with VB or C#.
I suppose it should be something straight forward to just call such a function but i m not familiar with the syntax :frowning:

Thanks!!!