Select curves from a list

Hi,
My problem is simple: 1. Have a breeb defined by a list of edges.
2. From that list i have to select those who are not part of the cap faces, defined by a known list.
3. From the selected list of curve, i have to extract only those who are not horizontal.

Please advise!

select from a list of curves.gh (8.3 KB)

Have a look at the attachment. Best.


select from a list of curves_re.gh (12.9 KB)

Thank you !
For the first part , the script is perfect, but for the secound part its not very accurate. For other kinds of breebs the script also selects horizontal lines.

Round the decimal places of Z values fr Deconstructcomponent or use Similarityinstead of Equality .