Skip to content

Getting Null reference when using Triangulation.CreateDelaunay #41

@flycast

Description

@flycast

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

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