Error --> Curve to Brep

I am fairly new to grasshopper; I've been working with a diagrid panel definition and I have ran into this problem that the "1. Data conversion failed from Curve to Brep". I have figured out that it is because the curve/surface is not planar. How can I fix this error using a non-planar curve/surface?

This is the surface that I am trying to use the diagrid panels on.

11.4Model.3dm

diagridPanels.gh