public bool Raycast(Ray ray, out Surfel surfel) { if (tree.Intersect(ray, out surfel)) { return(true); } surfel = new Surfel() { ray = ray.direction }; return(false); }
public bool Raycast(Ray ray, out Surfel surfel) { if (tree.Intersect(ray, out surfel)) { return(true); } surfel = new Surfel() { ray = ray.direction }; return(false); }