Esempio n. 1
0
		public void TestGeneratedPolygons_WOFrame_WithInset()
		{
			List<List<ClipperLib.IntPoint>> framePolygon;
			List<List<ClipperLib.IntPoint>> insetPolygon;
			List<List<ClipperLib.IntPoint>> fillPolygon;

			var square = new Square().WithInset(new VerticalBarInset()).WithRelativeStructureWidth(0.125);

			square.CalculatePolygons(null, out framePolygon, out insetPolygon, out fillPolygon);

			Assert.IsNull(framePolygon);
			Assert.IsNotNull(insetPolygon);
			Assert.IsNotNull(fillPolygon);
		}
Esempio n. 2
0
		public void TestGeneratedPolygons_WOFrame_WOInset()
		{
			List<List<ClipperLib.IntPoint>> framePolygon;
			List<List<ClipperLib.IntPoint>> insetPolygon;
			List<List<ClipperLib.IntPoint>> fillPolygon;

			var square = new Square();

			square.CalculatePolygons(null, out framePolygon, out insetPolygon, out fillPolygon);

			Assert.IsNull(framePolygon);
			Assert.IsNull(insetPolygon);
			Assert.IsNotNull(fillPolygon);
		}