Dispatch planar curves from a list

unhandled

(方钟鸣) #1

I have got a list within almost 100 curves,most of which are line-like curves,but there are 5 or more planar curves in that list,how to dispatch them to a new list so I can edit them later?


(Aris Nikolopoulos) #2

HI!
like this?
similarity.gh (10.1 KB)


(方钟鸣) #4

Oh that is so amazing! Thank you so much! By the way,does**x<>“Planar Curve”**come from certain computer language? Is there any way for me to learn?


#5

@anikolo,

it’s safer to check geometrically if a curve is planar using the Planar component.

DispatchPlanar.gh (9.9 KB)

_
c.


(Matt Gaydon) #6

Nice way to write Contains in a function, though it does not seem to work like that if you type it in a expression it changes to a not equal to symbol ≠ . Though note with the syntax you have used it must be the full text in the panel. I know this was not what the OP asked for but its good to know it does not work exactly the same as Contains (x, " Text") function.

Not that it makes much difference as both are in brackets but you will see you can also use Or if you looking for more than one text.


(Aris Nikolopoulos) #7

I think you misanderstood something.
‘planar curve’ is a not linear planar curve. it’s synonymous with planar curves but not the same. he didn’t want to extract the curves that were planar. he just wanted to separate them by type.


#8

Hi Aris, Ok. I was just concerned that a string description of a geometric property is used to distinguish between different objects… :slight_smile:

The wording used is still confusing for me sometimes, eg. for me a polyline is a polyline, and not a curve regardless of beeing linear or planar. How can something curved be linear ? PolylineLike

_
c.