# Tag Archives: arrows

## 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

## Draw spheres using WPF and C#

This example shows how you can draw spheres in a 3D WPF program. The following code shows the AddSphere method, which adds a sphere to a MeshGeometry3D. It’s kind of long, but the ideas (which I’ll explain shortly) aren’t too … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML | | 6 Comments

## Draw smooth cylinders using WPF and C#

This example shows how to draw smooth cylinders in a WPF application. The example Draw cylinders using WPF and C# shows how to draw cylinders. See that example to learn the basic techniques. To make WPF produce smooth cylinders, all … Continue reading

## Draw cylinders using WPF and C#

This example shows how to draw cylinders in a WPF application. Other examples such as Draw a 3D surface from a set of data points with an altitude map using WPF and C# show how to draw 3D graphics. This … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML | | 8 Comments

## Draw lines with custom end caps in C#

This example shows how you can add custom end caps to lines. When you use a Pen object to draw lines and curves, you can set its CustomStartCap and CustomEndCap properties to determine how the ends of the line are … Continue reading

## Draw lines with arrowheads in C#

If <vx, vy> is a vector between two points, then <-vy, vx> and <vy, -vx> are perpendicular vectors of the same length. If you add and subtract these vectors from the original one, you get new vectors that make a … Continue reading

Posted in algorithms, geometry, graphics, mathematics | | 4 Comments

## Use segments to draw 3D axes with tic marks using WPF and C#

This example uses the techniques described in the post Draw improved 3D line segments using WPF and C# to draw 3D axes with tic marks. You could make the tic marks in several ways. You could use small spheres, cubes, … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML | | 2 Comments

## Use segments to draw 3D arrows using WPF and C#

This example uses the techniques described in the post Draw improved 3D line segments using WPF and C# to draw 3D arrows. The following code shows the AddArrow extension method that adds an arrow to a MeshGeometry3D object. // Make … Continue reading