Detect if a player is inside a diagonal region

Most of my portals are flat, so to check if a player is inside, I just add a marker with dx, dy and dz, and if any player intersects, run code. But now I need to do that to a non flat portal, the first thing I though was to add various markers, but that is probably neither efficient nor the best way to do that.
Continue to help post