public static PolygonOperation GetPolygon()
        {
            UnityContainer unityContainer = new UnityContainer();

            unityContainer.RegisterType <IPolygonOperation, PolygonOperation>();
            PolygonOperation polygonOperation = unityContainer.Resolve <PolygonOperation>();

            return(polygonOperation);
            //throw new NotImplementedException();
        }
Esempio n. 2
0
 /// <summary>
 /// Modifies a polygon using the specified method.
 /// </summary>
 /// <param name="op">The operation to use on the subject polygon.</param>
 /// <param name="SubjectPolygon">The first polygon to perform the specified polygon operation on.</param>
 /// <param name="ClipPolygon">The second polygon to perform the specified polygon operation with.</param>
 /// <returns>The polygon shape created using the specified polygon operation.</returns>
 public Shape ClipPolygon(PolygonOperation op, Shape SubjectPolygon, Shape ClipPolygon)
 {
     throw new NotImplementedException();
 }