private void CreateSkeleton_Click(object sender, RoutedEventArgs e) { var k = group.Children.Count; for (int i = 5; i < group.Children.Count; i++) { group.Children.RemoveAt(i); } var depthData = _pcv.GetDepthDataFromLatestFrame(); _displayPointCloud = depthData.Item1; // all points _referenceFeatures = depthData.Item2; // only feature points [4] // populate all feature points // _displayPointCloud = Parser3DPoint.GetPopulatedPointCloud(point1, point2, point3, point4, _initialTransformation); //maintain most important feature point; //_thumbReference = _readingFeatures[0]; // Create BVH out of arm var bvh = new BVH(); bvh.AddAllToScene(_displayPointCloud); bvh.InitIndexing(); _rgbv._bvh = bvh; _renderer.CreatePointCloud(_displayPointCloud, Brushes.White, false); _processingStage.CompleteProcessingStage(ProcessingStage.Description.SkeletonArm); }