That is not quite how the resulting surface looks like - it does not have these edges, but smooth transitions.
To get something like that, You have to use
- either true surfaces and create the solid from those
- or add very small radii to the rectangle corners and split the circle into 8 arcs of different lengths.