BlendCrv equivalent for GH?

New GH user here:

So I achieve precisely what I want in Rhino, by using the BlendCrv function and the default settings (Curvature for both 1 and 2)

I’ve tried to carry that over to GH, but the BlendCrv component requires “Bulge” inputs? (First time I’ve seen these, is there a default equivalent I could just use?)

Or, attempting instead to use BlendCurvePt, I’m being asked for a Point input??

Playing around with both I can’t quite re-create the perfect result I’ve made in Rhino, am I missing something?

Any help would be greatly appreciated, and thank you in advance!

You could use rhino common api to make a component that use the same method.
Often gh use not the same methodes as rhino do.

Here are the different methodes…if you can figure out which one you use its not a problem to make a gh component.
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.curve/createblendcurve

That certainly sounds like it would solve my problem! (And probably some problems I haven’t yet come across :smiley: )

I can see there is code for this at the link you provided, how does one create a component using this?

Just use a c# script component and hit + to add inputs that you need and choose the type of data that you input.
Also for the output.
Than copy the method (the text) inside the script editor and its done.
If you give me the method that you use in rhino then i can make it for you and hopfully you can adapt the concept…to solve your problems.

1 Like

That’s nice of you :slight_smile:

I have no experience of coding and so trying the C+ component now I am quite lost.

I mean, the link you sent seems to be what I need " CreateBlendCurve method"

Is that what you mean?

HERE IS THE SCRIPT COMPONENT
curveblend.gh (3.3 KB)

I mean, the link you sent seems to be what I need " CreateBlendCurve method"

Yes and you can see 3 different input syntax.

syntax1

syntax2

syntax3

I used the last one in my example…you have to figure out what type of inputs you made when you use the rhino command.
Sometimes a rhino command is a combination of different rhinocommon methods.
Maybe we are lucky and the one i did is the one you need.

To explain in text how to create a script component is to much work …a small video session would be better.

Thanks! That was super quick :slight_smile:

Unfortunately the output I got still isn’t the same as the Rhino output I achieved.

I’m watching a video now on how to use the C# component so hopefully I’ll crack it :crossed_fingers:

Thanks again for your help and attention :pray:

Dont invest to much seems to be g3 is not possible…im not sure if it is already exposed.

I guess its g2 for both curves… so syntax 1 should work.

1 Like

Could I pay you to recreate syntax 1 for me? I’m not sure if that’s allowed to ask on this forum? But it would be super helpful for me…

No need for that.
Unfortunatly i have no idea about the parameter…anyway here is the component …in gh seems to be the syntax 2 exposed (bulc factor…i guess its the lenght of the tangent normal vector).

Sorry to be not to much help…in the end i guess blendcrv from rhino is still not available in rhinocommon…it should be.

curveblend_syntax1.gh (8.8 KB)

I am done here…start your question maybe again…so that this feature gets exposed to rhinocommon…or maybe someone have another idea or a better understanding of the inputs.

good luck i am done here
maybe its much more easy than i think.

Thank you so much! I will respond here if I get the answer, maybe you’ll be interested.

:pray: :pray: :pray: