Offset Surface Problem

I found useful stuff about this kind off cross region in the following link.

Okay. I got it. I’d like to know how to check offset surface would have this problem with some numerical way? I mean there is rhino common API or Grasshopper components?