Charles Petzold



Dodecahedron for Silverlight 3

August 9, 2009
Roscoe, N.Y.

This program is similar to the DodecahedronWithRadialBrush.xaml program from my book 3D Programming for Windows except that the Silverlight version cannot be done entirely in XAML, and requires a bunch of actual code. But it does demonstrate a little versatility in the techniques I'm developing to do 3D in Silverlight 3 with a little more flexibility than the new Projection classes would seem to imply. The techniques work with figures built from sides that are non-rectangular, and which additionally are not orthogonal to the X, Y, and Z axes, and I can color these sides with gradient brushes as alternatives to solid brushes and image brushes.

Dodecahedron.html