You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I tried to find Delaunay Triangle for a set of 134 points. After getting the list of triangular cells, I tried to plot them on Python, but the result is incorrect. Did I miss something when trying to execute CreateDelaunay()?
private static IEnumerable<DefaultTriangulationCell> DelaunayTriangulation(Dictionary<Point, double> dataForInterpolation)
{
List vertices = new List();
foreach (var item in dataForInterpolation)
{
vertices.Add(new Vertex(item.Key.X, item.Key.Y));
}
var delaunayTriangles = Triangulation.CreateDelaunay<Vertex, DefaultTriangulationCell>(vertices).Cells;
return delaunayTriangles;
}
The text was updated successfully, but these errors were encountered:
So I tried to find Delaunay Triangle for a set of 134 points. After getting the list of triangular cells, I tried to plot them on Python, but the result is incorrect. Did I miss something when trying to execute CreateDelaunay()?
private static IEnumerable<DefaultTriangulationCell> DelaunayTriangulation(Dictionary<Point, double> dataForInterpolation)
{
List vertices = new List();
foreach (var item in dataForInterpolation)
{
vertices.Add(new Vertex(item.Key.X, item.Key.Y));
}
var delaunayTriangles = Triangulation.CreateDelaunay<Vertex, DefaultTriangulationCell>(vertices).Cells;
return delaunayTriangles;
}
The text was updated successfully, but these errors were encountered: