예제 #1
0
파일: TestSquare.cs 프로젝트: Altaxo/Altaxo
		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);
		}
예제 #2
0
파일: TestSquare.cs 프로젝트: Altaxo/Altaxo
		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);
		}