Better way of create stepped rectangle profile within ellipse boundary

Trying to create a rectangle profile(solid red) within an ellipse boundary. while the way I set up, the rectangle profile is an outside ellipse in some cas
Q_Ellipse_Step Rectangle profile .gh (39.6 KB)
e, I was wondering if there is a better way of setting this up.

this might be another way?


Q_Ellipse_Step Rectangle profile_Re.gh (37.7 KB)

May this help

t3.gh (17.1 KB)

t4.gh (17.7 KB)

1 Like

Better way of create stepped rectangle profile within ellipse boundary.gh (239.0 KB)

1 Like

Is there a way to control the length of the rectangle step, in A & B?