# Tag Archives: cube

## Draw cones using WPF and C#

This example shows how to draw cones in WPF and C#. The program uses a method very similar to the one used by the example Draw cylinders using WPF and C#. The picture on the right shows the approach used … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML | | 1 Comment

## Make truncated dodecahedrons in WPF and C#

The post Make truncated tetrahedrons, octahedrons, and icosahedrons in WPF and C# explains how you can make various truncated platonic solids. The techniques described in an even earlier post still truncate the solids correctly. The only trick is figuring out … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | Leave a comment

## Make truncated tetrahedrons, octahedrons, and icosahedrons in WPF and C#

The post Make a truncated cube in WPF and C# explained how to make truncated cubes. The key methods were MakeTruncatedSolidCornerMesh, which creates new faces created by removing corners, and MakeTruncatedSolidFaceMesh, which creates faces representing the original cube’s faces with … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | Leave a comment

## Make a truncated cube in WPF and C#

Sorry but this is a pretty long post with a lot of details. If you don’t want to read about how the example program does its tricks, you can just read the first section and look at the pretty pictures. … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | 1 Comment

## Easily draw platonic solids in WPF and C#

This example basically combines and rearranges the techniques used by previous three-dimensional examples to make them easier to use. Its methods let you build platonic solids, geodesic spheres, and stellate spheres relatively easily. One real change in this example is … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | Leave a comment

## Platonic Solids Part 8: Icosahedron and dodecahedron

Understanding the Duals You may recall from the first article in this series (Platonic Solids Part 1: What are the Platonic solids?) that each platonic solid has a dual. You saw in the post Platonic Solids Part 5: Cube and … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | 1 Comment

## Platonic Solids Part 7: The dodecahedron

If you enjoyed calculating the coordinates of the vertices in an icosahedron, you’re in for a treat! Finding the vertices for a dodecahedron is even harder, largely because a dodecahedron has more vertices. An icosahedron has 20 triangular faces and … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | Leave a comment

## Platonic Solids Part 6: The icosahedron

Finding the Icosahedron’s Vertices Figure 1 shows an icosahedron with its hidden surfaces removed. Figure 2 shows the same icosahedron with hidden surfaces drawn in dashed lines and its vertices labeled a through l. The icosahedron is centered at the … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | 14 Comments

## Platonic Solids Part 5: Cube and octahedron

You may recall from the first article in this series (Platonic Solids Part 1: What are the Platonic solids?) that each platonic solid has a dual. The cube and octahedron are duals of each other. To make a dual from … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | Leave a comment

## Platonic Solids Part 4: The octahedron

Finding the Octahedron’s Vertices A platonic octahedron has six triangular faces. Because the edges of the triangles all have the same length, the triangles are equilateral triangles. If an equilateral triangle has edges of length 1, then its height is … Continue reading

Posted in algorithms, graphics, mathematics, wpf | | Leave a comment