예제 #1
0
 def __init__(self, points=None, cutoff=5, cutoff_distance=0.5,
         tolerance=epsilon):
     if points is None:
         points = []
     self._n = None
     self.tolerance = tolerance
     nodes = []
     for p in points:
         n = Node(p, (p.x, p.y, p.z))
         nodes.append(n)
     kdtree.__init__(self, nodes, cutoff, cutoff_distance)
예제 #2
0
 def __init__(self,
              points=None,
              cutoff=5,
              cutoff_distance=0.5,
              tolerance=epsilon):
     if points is None:
         points = []
     self._n = None
     self.tolerance = tolerance
     nodes = []
     for p in points:
         n = Node(p, p)
         nodes.append(n)
     kdtree.__init__(self, nodes, cutoff, cutoff_distance)
예제 #3
0
 def __init__(self, points=None, cutoff=5, cutoff_distance=0.5,
         tolerance=epsilon):
     if points is None:
         points = []
     self._n = None
     self.tolerance = tolerance
     nodes = []
     for p in points:
         n = Node()
         n.point = p
         n.bound = []
         n.bound.append(p.x)
         n.bound.append(p.y)
         n.bound.append(p.z)
         nodes.append(n)
     kdtree.__init__(self, nodes, cutoff, cutoff_distance)
예제 #4
0
 def __init__(self,
              points=None,
              cutoff=5,
              cutoff_distance=0.5,
              tolerance=epsilon):
     if points is None:
         points = []
     self._n = None
     self.tolerance = tolerance
     nodes = []
     for p in points:
         n = Node()
         n.point = p
         n.bound = []
         n.bound.append(p.x)
         n.bound.append(p.y)
         n.bound.append(p.z)
         nodes.append(n)
     kdtree.__init__(self, nodes, cutoff, cutoff_distance)