Back in February, I wrote a little hack that extracted the vertices, indices, and normals from the DirectX 3D static method Mesh.Teapot (an implementation of the famous Utah Teapot ) and converted them into XAML. This XAML teapot then found its way into a couple XAML animations in the following blog entries: 3D Teapot Tragedy Asexual Reproduction of Teapots The Petzold.Media3D library (available here ) includes a TeapotMesh class that lets you use the teapot in your WPF 3D programs. If you're running XamlCruncher 2.0 with Petzold.Media3D.dll loaded, you can download and run the following XAML file: PlainTeapot.xaml Or you can just run the following XBAP to see what it looks like: PlainTeapot.xbap Notice that an instance of the TeapotMesh class is defined as a resource, and it's later referenced in a GeometryModel3D element through a binding. The exterior is colored Cyan; the interior is Red. You can use the scrollbars at the bottom and right of the page to view it from different angles.
Read More...