Commit 364b1665 authored by sumpfralle's avatar sumpfralle

removed obsolete code


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@572 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 39099fc0
......@@ -119,29 +119,3 @@ class BaseCutter(object):
(cl, d)= self.intersect(BaseCutter.vertical, triangle)
return cl
def push(self, dx, dy, triangle):
""" TODO: this function is never used - remove it? """
# check bounding box collision
if dx == 0:
if self.miny > triangle.maxy:
return None
if self.maxy < triangle.miny:
return None
if dy == 0:
if self.minx > triangle.maxx:
return None
if self.maxx < triangle.minx:
return None
if triangle.maxz < self.location.z:
return None
# check bounding sphere collision
c = triangle.center
d = (c.x - self.location.x) * dy -(c.y - self.location.y) * dx
t = self.radius + triangle.radius
if abs(d) > t:
return None
(cl, d)= self.intersect(Point(dx, dy, 0), triangle)
return cl
......@@ -296,13 +296,3 @@ class SphericalCutter(BaseCutter):
cl = cl_e3
return (cl, d)
def drop_bis(self, triangle):
""" TODO: this function is never called - remove it? """
n = triangle.normal
if abs(n.dot(self.axis)) < epsilon:
d = triangle.p1.sub(self.center).dot(n)
if abs(d) >= self.radius - epsilon:
return None
(cl, d)= self.intersect(Point(0, 0, -1), triangle)
return cl
......@@ -159,17 +159,6 @@ def get_free_paths_ode(physics, p1, p2, depth=8):
physics.reset_drill()
return points
def drop_cutter_test(cutter, point, model):
zmax = -INFINITE
tmax = None
cutter.moveto(point)
for t in model.triangles():
cl = cutter.drop(t)
if cl and cl.z > zmax and cl.z < INFINITE:
zmax = cl.z
tmax = t
return (zmax, tmax)
def get_max_height_ode(physics, x, y, minz, maxz, order=None):
low, high = minz, maxz
trip_start = 20
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment