Beispiel #1
0
 public void Cube10000000()
 {
     pointCloudTarget = PointCloud.CreateCube_RandomPointsOnPlanes(1, 1670000);
     pointCloudSource = pointCloudTarget.Clone();
     PerformTest(false, false);
     //PerformTest_Parallel(false);
 }
Beispiel #2
0
        public static double Test5_CubeRotate45(ref PointCloudVertices myPCLTarget, ref PointCloudVertices myPCLSource, ref PointCloudVertices myPCLResult, float cubeSize)
        {
            myPCLTarget = PointCloud.CreateCube_RandomPointsOnPlanes(cubeSize, 10).ToPointCloudVertices();
            myPCLSource = PointCloudVertices.CloneVertices(myPCLTarget);

            Matrix3d R = CreateAndPrintMatrix(45, 45, 45);

            PointCloudVertices.Rotate(myPCLSource, R);

            myPCLResult = IterativeClosestPointTransform.Instance.PerformICP(myPCLSource, myPCLTarget);
            return(IterativeClosestPointTransform.Instance.MeanDistance);
        }
Beispiel #3
0
        public static float Test5_CubeRotate45(ref PointCloud mypointCloudTarget, ref PointCloud mypointCloudSource, ref PointCloud mypointCloudResult, float cubeSize)
        {
            mypointCloudTarget = PointCloud.CreateCube_RandomPointsOnPlanes(cubeSize, 10);

            mypointCloudSource = PointCloud.CloneAll(mypointCloudTarget);

            Matrix3 R = CreateAndPrintMatrix(45, 45, 45);

            PointCloud.Rotate(mypointCloudSource, R);

            mypointCloudResult = IterativeClosestPointTransform.Instance.PerformICP(mypointCloudSource, mypointCloudTarget);
            return(IterativeClosestPointTransform.Instance.MeanDistance);
        }
Beispiel #4
0
        public void Cube200000()
        {
            pointCloudTarget = PointCloud.CreateCube_RandomPointsOnPlanes(1, 34000);
            pointCloudSource = pointCloudTarget.Clone();

            //-------------------
            GlobalVariables.ResetTime();

            this.pointCloudResult = tree.BuildAndFindClosestPoints(pointCloudSource, pointCloudTarget, false);
            GlobalVariables.ShowLastTimeSpan("Search ");

            Assert.IsTrue(tree.MeanDistance == 0);
        }
Beispiel #5
0
        public void Cube_ConvexHull_RandomPoints()
        {
            pointCloudSource = PointCloud.CreateCube_RandomPointsOnPlanes(1, 10);

            PointCloud.SetColorOfListTo(pointCloudSource, Color.Red);
            List <Vector3> myListVectors = pointCloudSource.ListVectors;

            ConvexHull3D convHull = new ConvexHull3D(myListVectors);



            ShowPointCloud(pointCloudSource);

            System.Diagnostics.Debug.WriteLine("Number of faces: " + convHull.Faces.ListFaces.Count.ToString());
        }
        public void Cube_Voronoi_RandomPoints()
        {
            pointCloudSource = PointCloud.CreateCube_RandomPointsOnPlanes(1, 10);

            //pointCloud = Vertices.CreateCube_Corners(0.1);
            PointCloud.SetColorOfListTo(pointCloudSource, Color.Red);
            List <Vector3> myListVectors = pointCloudSource.ListVectors;

            DelaunayTri delaunay = new DelaunayTri();

            delaunay.Voronoi(myListVectors);



            ShowPointCloud(pointCloudSource);
        }
Beispiel #7
0
 public void Cube6000_TakenAlgorithm()
 {
     pointCloudTarget = PointCloud.CreateCube_RandomPointsOnPlanes(1, 1000);
     pointCloudSource = pointCloudTarget.Clone();
     PerformTest(false, false);
 }
Beispiel #8
0
 public void Cube100()
 {
     pointCloudTarget = PointCloud.CreateCube_RandomPointsOnPlanes(1, 16);
     pointCloudSource = pointCloudTarget.Clone();
     PerformTest(true, false);
 }