Remove obsolete methods from IPolygon interface.

This commit is contained in:
wo80
2022-02-14 21:46:02 +01:00
parent 5500ecc166
commit 940ae18061
5 changed files with 7 additions and 28 deletions
+2 -2
View File
@@ -38,12 +38,12 @@ namespace MeshExplorer.Generators
double r = GetParamValueInt(2, param2);
// Generate circle (hole)
input.AddContour(CreateCircle(r, n, 1), 1, new Point(0, 0));
input.Add(new Contour(CreateCircle(r, n, 1), 1), new Point(0, 0));
n = GetParamValueInt(0, param0);
// Generate box
input.AddContour(CreateRectangle(new Rectangle(-50, -50, 100, 100), n, 2), 2);
input.Add(new Contour(CreateRectangle(new Rectangle(-50, -50, 100, 100), n, 2), 2));
return input;
}
@@ -40,17 +40,17 @@ namespace MeshExplorer.Generators
// Inner cirlce (radius = 1) (hole)
r = 1;
input.AddContour(CreateCircle(r, (int)(r / h), 1), 1, new Point(0, 0));
input.Add(new Contour(CreateCircle(r, (int)(r / h), 1), 1), new Point(0, 0));
// Center cirlce
r = (radius + 1.0) / 2.0;
input.AddContour(CreateCircle(r, (int)(r / h), 2), 2);
input.Add(new Contour(CreateCircle(r, (int)(r / h), 2), 2));
//count = input.Count;
// Outer cirlce
r = radius;
input.AddContour(CreateCircle(r, (int)(r / h), 3), 3);
input.Add(new Contour(CreateCircle(r, (int)(r / h), 3), 3));
// Regions: |++++++|++++++|---|
// r 1 0
+2 -2
View File
@@ -63,7 +63,7 @@ namespace MeshExplorer.Generators
inner.Add(new Vertex(r * Math.Cos(i * step), r * Math.Sin(i * step)));
}
input.AddContour(inner, 1);
input.Add(new Contour(inner, 1));
r = 1.5 * r;
@@ -85,7 +85,7 @@ namespace MeshExplorer.Generators
outer.Add(new Vertex(ro * Math.Cos(i * step + offset), ro * Math.Sin(i * step + offset)));
}
input.AddContour(outer, 2);
input.Add(new Contour(outer, 2));
input.Holes.Add(new Point(0, 0));