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

Getting Null reference when using Triangulation.CreateDelaunay #41

Open
flycast opened this issue Jun 24, 2020 · 3 comments
Open

Getting Null reference when using Triangulation.CreateDelaunay #41

flycast opened this issue Jun 24, 2020 · 3 comments

Comments

@flycast
Copy link

flycast commented Jun 24, 2020

I am trying to create an open surface reconstruction from a point cloud.
My code looks like this:

IList<CHVertex> verticies = new List<CHVertex>(); 
var test = Triangulation.CreateDelaunay(verticies);

verticies has 520 data points that I have validated.

Stacktrace is:
at MIConvexHull.ConvexHullAlgorithm.CalculateVertexCentriod(IList`1 vertexIndices) in C:\Users\campmatt\source\repos\MIConvexHull\MIConvexHull.NET Standard\ConvexHull\ConvexHullAlgorithm.Initialize.cs:line 491

This is the line 491.

What could be causing this?

I have added a file with my raw data points.
point cloud.txt

@runette
Copy link

runette commented Jul 12, 2020

Same problem here. - did you find a solution ?

@micampbell
Copy link
Member

I was able to multiply your coordinates each by 100 and got an answer. The problem seems to be with the small coordinates in higher dimensions. I am looking into it.

@micampbell
Copy link
Member

Actually, I pushed a change that might help. At least it is working for the sample points provided.
let me know here either way if it works for both of you.

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