public froGHRTree(Mesh mesh) { Point3d[] vertices = mesh.Vertices.ToPoint3dArray(); Points = new Point3dList(vertices); Source = EnumRTreeType.Mesh; Tree = RTree.CreateFromPointArray(vertices); }
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); } }
public froGHRTree(PointCloud cloud) { Points = new Point3dList(cloud.GetPoints()); Source = EnumRTreeType.PointCloud; Tree = RTree.CreatePointCloudTree(cloud); }