How to identify the shape of the curve?

As in the example of the curve, how do I judge which are round and which are rectangular
, How to get the radius of the center, how to determine the length of the rectangle width and rotation angle.

thanks!

  • up

    Ethan Gross

    Hi. You can use the following. The Circle and Rectangle inputs will assign a Null to anything which is not in that category and then you can use Cull Pattern to filter the list of curves. I included a pentagon to further demonstrate this. Deconstruct Rectangle and Deconstruct Circle give you the rest of what you're looking for.

    • up

      chu

      thank you very much