Another construction of the dodecagon, from a line segment.
Start with two points on a line. Make a perpendicular line.
Get the 4 intersecting points; use them as centers.
Get the intersections of the original circle with the new ones: dodecahedron.
Please look at the source code of this page for more information.