private void ExecuteTests() { /// TEST //// var refPoint = new Point3D(-1, -1, -1); var transPoint = new Point3D(2, 2, 2); var transform = Util.ComputeInitialTransformation(refPoint, transPoint); Ray ray = new Ray(new Point3D(0, 0, 10), new Vector3D(0.01f, 0.08f, -1)); BBox box = new BBox(new Point3D(-1, -1, -1), new Point3D(1, 1, 1)); var hit = box.Intersect(ray); var points = _renderer.ReadData(); _rgbv._bvh = BVH.InitBVH(points); Intersection inter = _rgbv._bvh.Intersect(ray, float.MaxValue); if (inter.Hit()) { Log.WriteLog("Hit detected!!"); } Point3DCollection collection = new Point3DCollection(inter._node._objects); //_renderer.CreatePointCloud(collection, Brushes.White); Log.WriteLog("test end"); /// TEST END /// }