Dividing a Polycurve


#1

Good day.
I’ve been exploring the Roof nodes of the package WombatDynamo, in particular FootPrintRoof.ByEdgesAndSlopes. Now this node has four input parameters, one of which is edges: a set of lines forming a closed curve. I’ve been applying it to this project of mine which offsets a polycurve from another polycurve on the boundary lines of a building, but it looks like the node does not accept polycurves as input.

With that in mind, is there a way to break a polycurve into pieces of the curves themselves? I mean, for a polycurve composed of lines going around in a closed circle, can I break the polycurve down into the individual lines using a node? Thank you for your help.


#2

Lunchbox package

image


#3

Thank you! I’ll look into it.


#4

So what happened is that the curves WERE produced by the node that m.rijsmus recommended, but the node apparently requires LINE elements, not CURVES. For us the distinction is almost nil, but they seem to be very strict for this node. So is there a way to change Curves into Lines?


#5

Hi :slight_smile:

Quite hard to tell without an example, but have you tried using PolyCurve.Curves ?


#6

You can also use Geometry.Explode node, and if you need lines instead of curves you can do it like this:


#7

Thank you! The solution was perfect!


#8

Please mark the solution for others to refer to in the future. :slight_smile: