Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

GHPython component can't interpret Rhino.Geometry.Curve[]?

$
0
0

Hi,

Say I have a Rhino.Geometry.Polyline pline and a couple of Rhino.Geometry.Arcs a1, a2, and a3.

When I do the following to join them into a single curve, I get a Rhino.Geometry.Curve[], as specified in the documentation.

import Rhino.Geometry as rg

a = rg.Curve.JoinCurves(
    [a1.ToNurbsCurve(), pline.ToPolylineCurve(), a2.ToNurbsCurve(), a3.ToNurbsCurve()], 0.01
)

When piping it through output a of a GHPython component, the latter seems unable to cast the curve array to a curve type that Grasshopper can interpret, and thus no geometry is previewed in Rhino, nor available to work on further.

Screenshot 2023-03-28 at 17.12.22

How do I get a joined curve that I can continue processing in Grasshopper?

10 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles