Ejemplo n.º 1
0
        public List <int> IndicesInSphere(Point3d center, double radius)
        {
            SphereSearchData distanceSearchData = new SphereSearchData();

            Tree.Search(new Sphere(center, radius), SphereCallback, distanceSearchData);
            return(distanceSearchData.Ids);
        }
Ejemplo n.º 2
0
        private static void SphereCallback(object sender, RTreeEventArgs e)
        {
            SphereSearchData distanceSearchData = e.Tag as SphereSearchData;

            distanceSearchData.Ids.Add(e.Id);
        }