private void Clouds_AlignPCAAxes() { if (!GetFirstTwoCloudsFromOpenGLControl()) { return; } PointCloudVertices pointCloudTarget = PointCloudVertices.FromPointCloud(this.pSource); pointCloudTarget = PCA.RotateToOriginAxes(pointCloudTarget); PointCloudVertices pointCloudSource = PointCloudVertices.FromPointCloud(this.pTarget); PointCloudVertices pointCloudResult = PCA.RotateToOriginAxes(pointCloudSource); pResult = pointCloudResult.ToPointCloud(); //pResult.SetColor(new OpenTK.Vector3(1, 0, 0)); pointCloudResult.AddPointCloud(this.pTarget.ToPointCloudVertices()); SaveResultCloudAndShow(pointCloudResult); //DisplayResultPointCloud(); //DisplayObjects(); }