Skip to content

Delaunay Triangles Created Incorrectly #48

@bnguyenKns

Description

@bnguyenKns

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;
}
Figure_0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions