Hi all.
I'm trying to create a rule that places houses of a specified depth and width around the perimeter of a Lot.
The lots are usually not rectangular, and I'm trying to create clusters of houses to maximise efficiency.
What I've tried so far is using the splitAndSetback operation, which carves the boundary into segments. Good so far. Other than houses, some of the buildings need to be perimeter blocks which wrap around the corners, so this operation is very useful.

I'm then trying to use the innerRectangle function to create a rectangle, that I can then split into individual shapes that will become the houses.
Unfortunately, sometimes the innerRectangle is narrower than the depth I need for the houses - see shape on the left.

Can anyone think of a way to alternate way to fit a rectangle with a fixed depth into these shapes, as pictured below in green?

Any help much appreciated.