Remove obsolete methods from IPolygon interface.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
namespace TriangleNet.Geometry
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
@@ -44,12 +43,6 @@ namespace TriangleNet.Geometry
|
||||
/// </summary>
|
||||
bool HasSegmentMarkers { get; set; }
|
||||
|
||||
[Obsolete("Use polygon.Add(contour) method instead.")]
|
||||
void AddContour(IEnumerable<Vertex> points, int marker, bool hole, bool convex);
|
||||
|
||||
[Obsolete("Use polygon.Add(contour) method instead.")]
|
||||
void AddContour(IEnumerable<Vertex> points, int marker, Point hole);
|
||||
|
||||
/// <summary>
|
||||
/// Compute the bounds of the polygon.
|
||||
/// </summary>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
namespace TriangleNet.Geometry
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
@@ -78,19 +77,6 @@ namespace TriangleNet.Geometry
|
||||
HasSegmentMarkers = markers;
|
||||
}
|
||||
|
||||
[Obsolete("Use polygon.Add(contour) method instead.")]
|
||||
public void AddContour(IEnumerable<Vertex> points, int marker = 0,
|
||||
bool hole = false, bool convex = false)
|
||||
{
|
||||
this.Add(new Contour(points, marker, convex), hole);
|
||||
}
|
||||
|
||||
[Obsolete("Use polygon.Add(contour) method instead.")]
|
||||
public void AddContour(IEnumerable<Vertex> points, int marker, Point hole)
|
||||
{
|
||||
this.Add(new Contour(points, marker), hole);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public Rectangle Bounds()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user