Wallace wrote:
ofnuts wrote:
Quite good. IIRC, starting with a square with a round hole you need to scale horizontally and shear it once (gets you two of the vertical faces) and then flip that result (gets you the other two vertical faces). Top and bottom are a 45° rotation and a scaling.
It's the scaling of those top and bottom parts, that I find the most difficult to do.
I didn't shear, I made a square with a hole in it, then rotated 45 degrees,
and scaled the height of that result to be sqrt(((0.5(x))^2)/3)*2 where x is the width distance of the rotated 45 degree angle square (or the length of diagonal of the original square except now its' rotated it so it's just horizontal width).
Once I have this shape (the top), I just rotated 180 degrees to get the bottom, and then all the others sides are just different rotations of that piece.
Here's more details on how i did it.
after having the rotated 45 degree square with hole

Now i wanted to scale the height down such that the result has height equal to the diagonal sides which are all changing as you scale.
So I doodled something like this

I know x since i am keeping the width the same when scaling, just solve for a
x^2 + a^2 = (2a)^2
x^2 + a^2 = 4a^2
x^2 = 3a^2
(x^2)/3 = a^2
sqrt((x^2)/3) = a
and there you have have 2a is my new height.