Selecting curves (not curve segments) from a collection

In the process of trying to import closed curves from QGIS to Rhino (which when you export DXF brings them in only as hatches) I ended up using an SVG instead from QGIS.

When that comes in however, while it is curves, it is a combination of curves and curve segments. I am trying to cull the segments and keep the curves.

I have tried splitting/culling a list on the basis of if they are closed or not, but all curves are selected in that process.

Is there a way I can cull/split the list by number of vertices? Eg split the list on the basis of >2?

Or any other method??

Are these segments line-like or are they spline segments?

You could use match text (TMatch) to identify lines against curves, and most other things as long as you know what grasshopper usually calls them:

2023-09-07_15-20-05

You could look at control points or vertices upon exploding the curves - also with discontinuity - it all depends on what these objects are:

Thanks for your response!

In Rhino they are listed as “curve” (which are the ones I want) or “curve segments” (the ones I’m trying to get rid of). But in GH they all just show in a panel as “Referenced Polyline”

Makes sense!

In fact if you zoom into the second image in my response, the panel also reads ‘referenced’ this and that - it’s because they are indeed referenced from Rhino - in the animated gif, though, they don’t say ‘referenced’ because I internalized the curves I referenced. Try it?

No are they all polylines, then? Sounds like they are?

Anyway, if they are all polylines or if they aren’t then maybe you’re better off culling based on vertex or control point count as you intended, or maybe via curve length. Something. It truly depends on what these objects are and what exactly you’re after - maybe share your files or an image?

Do you have idea how o can cull by vertex count?
I haven’t been able to work it out

image

This was a way to do it - it should work fine unless two curves (one you want and one you don’t) have the same vertex count.

*Edit:
I titled the panel as “No. of control points” but they were actually the vertices sorry for confusions