I normally use polyframe for this but in some extreme conditions it fails, specially at harsh corners and some times it flips the normals since we cant specify an up vector. That urged me to create a small handy tool to solve those issues, you just needs to specify an up vector (perpendicular to your shape plane) and to flip the nomals you just input the reverse up vec, and that's it.