示例#1
0
        protected void ShowResultsInWindow_Cube_ProjectedPoints(bool changeColor)
        {
            if (pointCloudAddition1 != null)
            {
                PointCloud.SetColorOfListTo(pointCloudAddition1, Color.Black);
            }


            //color code: green, red, violet axes
            //cube is white


            //so - if there is nothing red on the OpenTK control, the result overlaps the target
            PointCloud.SetColorOfListTo(pointCloudSource, Color.Black);

            if (pointCloudTarget != null)
            {
                PointCloud.SetColorOfListTo(pointCloudTarget, Color.Red);
            }


            if (pointCloudResult != null)
            {
                PointCloud.SetColorOfListTo(pointCloudResult, Color.Violet);
            }



            TestForm fOTK = new TestForm();

            fOTK.Show3PointClouds(pointCloudSource, pointCloudTarget, pointCloudResult, false);
            if (this.pointCloudAddition1 != null)
            {
                fOTK.AddPointCloud("Cube", this.pointCloudAddition1);
            }
            if (pointCloudAddition2 != null)
            {
                fOTK.AddPointCloud("Cube Transformed", this.pointCloudAddition2);
            }
            fOTK.ShowDialog();
        }
示例#2
0
        //protected void ShowCubeNormals(float cubeSize, List<Vector3> normals)
        //{

        //    PointCloud.SetColorOfListTo(pointCloudSource, Color.Red);
        //    PointCloud myPointCloud = new PointCloud ("Cube");

        //    myModel.PointCloud = pointCloudSource;
        //    myModel.Normals = normals;



        //    ShowModel_Normals(myModel);

        //}



        protected void Show4PointCloudsInWindow(bool changeColor)
        {
            TestForm fOTK = new TestForm();


            fOTK.Show3PointClouds(pointCloudSource, pointCloudTarget, pointCloudResult, changeColor);
            if (pointCloudAddition1 != null)
            {
                fOTK.AddPointCloud("Original Data", this.pointCloudAddition1);
            }
            fOTK.ShowDialog();
        }
示例#3
0
        protected void ShowVerticesInWindow(byte[] colorModel1, byte[] colorModel2)
        {
            TestForm fOTK = new TestForm();

            PointCloud.SetColorToList(pointCloudSource, colorModel1);
            pointCloudSource.Name = "Source";
            fOTK.OpenGL_UControl.OGLControl.GLrender.AddPointCloud(pointCloudSource);



            if (pointCloudResult != null && this.pointCloudResult.Count > 0)
            {
                PointCloud.SetColorToList(pointCloudResult, colorModel2);
                fOTK.AddPointCloud("Transformed", pointCloudResult);
            }

            //fOTK.ShowModels();

            fOTK.ShowDialog();
        }