I’m developing a Grasshopper plugin that involves passing polyline data between components.
Here is a demo use case:
- Component comA:
- Component comB:
PolylineCurve(either from Rhino, or oA) – iB
As the Grasshopper SDK does not have a
pManager.AddPolylineCurveParameter, I guess what I should use is
AddCurveParameter for iB
Now I have several questions related to this process:
What should be the data type of oA?
What should be the data type of iB?
As I need to process iB as a polyline, if I use
PolylineCurve, Grasshopper will report error:
Invalid Cast: Curve >> PolylineCurve.
Or should I use
Curve? Then how should I cast it back to
GH_Curvebe chosen over
Curve? It seems the SDK has implicit methods to automatically cast
GH_Curve, then is there any reason I should use it?