Minimal Area Rectangle on an inclined surface

Hi Guy, I’ve tried in the past to get the length and width of a floor and using Springs.Points.MinAreaRectangle I’ve extracted a rectangle enclosing the floor which I can use to push into instance parameters as a rough width and lengh. The script below is stripped to show just the minimal area rectangle.

In the same style I’ve tried to do so for an inclined roof or floor. Problem is that it projects the inclined element flat so it will return a smaller rectangle.
The actual question is as following: is it possible to return a rectangle on the inclined surface ?
This way it will return rough length and width of the actual element and not a projection.