Plot3D truncated triangle, Cuboctahedron, Octagonal rod

Hello,
I am facing problem in finding equations for the following figures for Plot3D

truncated triangle

Cuboctahedron

Octagonal rod