Пример #1
0
 public froGHRTree(Mesh mesh)
 {
     Point3d[] vertices = mesh.Vertices.ToPoint3dArray();
     Points = new Point3dList(vertices);
     Source = EnumRTreeType.Mesh;
     Tree   = RTree.CreateFromPointArray(vertices);
 }
Пример #2
0
 public froGHRTree(List <Point3d> points)
 {
     Points = new Point3dList();
     Source = EnumRTreeType.Points;
     Tree   = new RTree();
     for (int i = 0; i < points.Count; i++)
     {
         Points.Add(points[i]);
         Tree.Insert(points[i], i);
     }
 }
Пример #3
0
 public froGHRTree(PointCloud cloud)
 {
     Points = new Point3dList(cloud.GetPoints());
     Source = EnumRTreeType.PointCloud;
     Tree   = RTree.CreatePointCloudTree(cloud);
 }