algorithmic modeling for Rhino
Hi all,
I'm trying to get a graph visualised in the Rhino viewport. To this end I have a custom class called 'Graphline' in C#. Each 'Graphline' consist of three parts:
Now my goal is to get these graphlines into Rhino, but the "RegisterOutputParams" ofcourse does not have the 'Graphline' type yet.
I've already worked with creating a custom parameter in the past using "IGH_Goo" however in these past cases there was no need for including geometry and thats where I got stuck.
Can anyone help me on how to get my custom geometry Graphlines from c# into the rhino viewport?
Thanks in advance,
Jorn
Tags:
Do you just want to add some preview in GH or do you want to have that Graphline baked as a custom Graphline object?
If it's the first, you can implement the IGH_PreviewData interface for your IGH_Goo type. That interface gets called on the registered output parameters. You will be able to provide some code to draw your lines there.
For the second, I have no idea how, but there are some ways to create custom Rhino types. You should be able to implements IGH_BakeAwareData and provide some code, that transfers the IGH_Goo type to the custom Rhino type.
Thanks, for replying! It's the second one, baking 'Graphline' as a custom Rhino type. You got some sources where I can learn about IGH_BakeAwareData? Else ill just start googling haha
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by