cshea
(Cshea)
February 14, 2019, 12:21pm
1
Hi
Is there a way using Grasshopper to select line curves from a list of curves which contains some line curves. I know Human has a component to sort object by type… it covers, points, curves, surfaces, meshes etc but not lines
Thanks
RaMa0
(Raul Matagringo)
February 14, 2019, 12:46pm
2
Hi,
you can use component “Curve Type” from TT Toolbox plug in for GH.
Cheers,
Raul
corellaman
(René Corella)
February 14, 2019, 12:55pm
3
Hi Cshea,
You can ‘cheat’ this way:
Pufferfish plugin has an isLinear component also that helps with this
also check these:
Until some good Samaritan (who plays ball with components) gives you the native components answer … get the attached (in fact 2 lines of code) : it puts polylines in a tree where the branch index equals the N of poly segments. Notify if you need further sorting on the Lists (per length for instance) of some other type of addicional sort/classification/whatever.
Sort Curves_V1.gh (25.9 KB)
[Screen%20Shot%20090]
cshea
(Cshea)
February 14, 2019, 4:44pm
4
Thanks _corellaman
it works!!
cshea
(Cshea)
February 14, 2019, 5:16pm
5
hi raul
thanks
i have the tt toolbox plug in but don’t see the ‘curve type’ component. …
cshea