-->
Composite Geometry
Section 6.2 Perimeters of Composite Figures 249 EXAMPLE 2 Finding a Perimeter The fi gure is made up of a semicircle and a triangle. Find the perimeter. The distance around the triangular part of the fi gure is 6 + 8 = 14 feet.
This example shows how to create composite shapes using Geometry objects and display them using a Path element. In the following example, a LineGeometry, EllipseGeometry, and a RectangleGeometry are used with a GeometryGroup to create a composite shape. The geometries are then drawn using a Path element.
Example
The following illustration shows the shape created in the previous example.
Composite Geometry
More complex shapes, such as polygons and shapes with curved segments, may be created using a PathGeometry. For an example showing how to create a shape using a PathGeometry, see Create a Shape by Using a PathGeometry. Although this example renders a shape to the screen using a Path element, Geometry objects may also be used to describe the contents of a GeometryDrawing or a DrawingContext. They may also be used for clipping and hit-testing.
This example is part of larger sample; for the complete sample, see the Geometries Sample.