public void ShowListOfVertices(List <Vertex> myVerticesList, byte[] color)
        {
            if (color != null)
            {
                List <float[]> myColors = PointCloudUtils.CreateColorList(myVerticesList.Count, color[0], color[1], color[2], color[3]);
                Vertices.SetColorToList(myVerticesList, myColors);
            }

            this.OpenGLControl.ShowPointCloud("Point Cloud", myVerticesList);
        }
Example #2
0
        public void ShowPointCloud(byte[] mycolorInfo, ushort[] depthInfo, int width, int height)
        {
            List <Vector3d> myVectors = Vertices.ConvertToVector3DList_FromArray(depthInfo, width, height);
            List <float[]>  myColors  = PointCloudUtils.CreateColorInfo(mycolorInfo, depthInfo, width, height);

            this.lastPointCloud = myVectors;
            this.lastColors     = myColors;

            this.OpenGLControl.ShowPointCloud("Color Point Cloud", myVectors, myColors);

            //ColorUtils.SetColorFromColorArray2Dim(mycolorInfo, depthInfo, width, height, polydata);

            ////PointCloudUtils.Colorize(polydata);
            //ShowPointCloud(polydata);
        }