Single deformed extrusion when extruding board edges in GH

I’m working on a project in Grasshopper where I am extracting boundary edges from a series of boards and extruding them. For some reason, the extrusion works perfectly on almost all the geometry, but it completely twists and deforms on just one of the boards (as seen in the screenshot below).

It looks like the extrusion or loft is pinching and shearing diagonally rather than extruding straight in X-direction

What I’ve tried so far:

  • Checking for duplicate or overlapping curves.
  • Ensuring the input curves are clean and closed.
  • Double-checking that the extrusion vector is uniform.
  • Played around with Fillet corner angle to see if that messes up something

I suspect it might be a curve direction issue, a mismatched seam point, or a flipped surface normal on that specific board, but I’m having trouble normalizing it in my script.

Does anyone know the best way to force this single edge to align with the rest? Any advice on how to standardize the curve directions or guide the extrusion correctly would be greatly appreciated!

Thanks in advance!

Uploading a file is the quickest way to solve this problem

Sorry can’t do that that’s company’s intellectual property.

I managed to fix the issue! It turns out the geometry itself wasn’t actually broken or twisted. It was a visual rendering artifact in the Rhino viewport.

To fix it, I just went to Rhino Options > Mesh and changed the render mesh setting from Smooth and Slower (High Quality) to Jagged and Faster (Document Quality). As soon as I did that, the render mesh refreshed, and the board instantly displayed perfectly straight just like the others.