Triangular Panel Extrusion Definition

Hello, new grasshopper user here!

I've been trying to create a definition which could work to extrude and generate a framing for the panels i got from Panelling Tools.

I use as base curves the Faces borders Panelling Tools generates; but it doesn't always work, and lately it's been giving a lot of errors. I'm a little bit desperate here, and quite don't know how to fix this, i can't see why it would work on some curves but not on others which have esentially the same characteristics

Triangular%20Panels.gh