This project is read-only.
1
Vote

MIConvexHull problem

description

Hi...I am writing a code at C# with Visual Studio 2015!I am trying to use IMConvenxHull like in the example: but i can't add "using MIConvexHull;" and show to me this message..Could anyone Help me?

"
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
  • MIConvexHull, "C:\Users\Downloads\miconvexhull_9d0a2316ac9e\MIConvexHull\MIConvexHull.csproj"
No changes required
These projects can be opened in Visual Studio 2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
  • ConsoleApplication8, "c:\users\documents\visual studio 2015\Projects\ConsoleApplication8\ConsoleApplication8.sln"
    "
Thanks!!




namespace TestEXE_for_MIConvexHull2D
{
using System;
using System.Linq;
using MIConvexHull;


static class Program
{
    static void Main()
    {
        const int NumberOfVertices = 100000;
        const double size = 1000;

        var r = new Random();
        Console.WriteLine("Ready? Push Return/Enter to start.");
        Console.ReadLine();

        Console.WriteLine("Making " + NumberOfVertices + " random vertices.");

        var vertices = new Vertex[NumberOfVertices];
        for (var i = 0; i < NumberOfVertices; i++)
            vertices[i] = new Vertex(size * r.NextDouble(), size * r.NextDouble());

        Console.WriteLine("Running...");
        var now = DateTime.Now;
        var convexHull = ConvexHull.Create(vertices).Points;
        var interval = DateTime.Now - now;
        Console.WriteLine("Out of the {0} 2D vertices, there are {1} on the convex hull.", NumberOfVertices, convexHull.Count());
        Console.WriteLine("time = " + interval);

        Console.ReadLine();
    }
}
}

comments