Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voronoi Cell Vertices #27

Open
nmacholl opened this issue Jan 1, 2019 · 2 comments
Open

Voronoi Cell Vertices #27

nmacholl opened this issue Jan 1, 2019 · 2 comments

Comments

@nmacholl
Copy link

nmacholl commented Jan 1, 2019

I'm having a bit of trouble understanding what VoronoiMesh is actually giving me.
Example:

List<DefaultVertex> anchors = new List<DefaultVertex>();
anchors.Add(new DefaultVertex() {Position = new double[]{-1, 1}});
anchors.Add(new DefaultVertex() {Position = new double[]{-1, -1}});
anchors.Add(new DefaultVertex() {Position = new double[]{1, -1}});
anchors.Add(new DefaultVertex() {Position = new double[]{1, 1}});
anchors.Add(new DefaultVertex() {Position = new double[]{0, 0}});

var mesh = VoronoiMesh.Create(anchors);

The result of this is a mesh object that contains 4 vertices and 4 edges.
From example 5 I am to understand that mesh.Vertices should be the Voronoi cells but they seem to be triangles from the Delauny triangulation and not the Voronoi cells. What am I not understanding here?

@ryanadean
Copy link

I noticed this too... any ideas?

@Camuvingian
Copy link

Is this fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants