Commit c60d883e authored by sumpfralle's avatar sumpfralle

renamed "Waterline" path generator to ContourFollow


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@704 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent c28aa124
...@@ -42,7 +42,7 @@ _DEBUG_DISBALE_WATERLINE_SHIFT = False ...@@ -42,7 +42,7 @@ _DEBUG_DISBALE_WATERLINE_SHIFT = False
log = pycam.Utils.log.get_logger() log = pycam.Utils.log.get_logger()
class WaterlineTriangles: class CollisionPaths:
def __init__(self): def __init__(self):
self.waterlines = [] self.waterlines = []
...@@ -157,7 +157,7 @@ class WaterlineTriangles: ...@@ -157,7 +157,7 @@ class WaterlineTriangles:
return result return result
class Waterline: class ContourFollow:
def __init__(self, cutter, model, path_processor, physics=None): def __init__(self, cutter, model, path_processor, physics=None):
self.cutter = cutter self.cutter = cutter
...@@ -251,7 +251,7 @@ class Waterline: ...@@ -251,7 +251,7 @@ class Waterline:
progress_counter=None): progress_counter=None):
plane = Plane(Point(0, 0, z), self._up_vector) plane = Plane(Point(0, 0, z), self._up_vector)
lines = [] lines = []
waterline_triangles = WaterlineTriangles() waterline_triangles = CollisionPaths()
projected_waterlines = [] projected_waterlines = []
for triangle in self.model.triangles(minx=minx, miny=miny, maxx=maxx, maxy=maxy): for triangle in self.model.triangles(minx=minx, miny=miny, maxx=maxx, maxy=maxy):
if not progress_counter is None: if not progress_counter is None:
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
""" """
$Id$ $Id$
Copyright 2010 Lars Kruse <devel@sumpfralle.de>
Copyright 2008 Lode Leroy Copyright 2008 Lode Leroy
This file is part of PyCAM. This file is part of PyCAM.
...@@ -20,7 +21,7 @@ You should have received a copy of the GNU General Public License ...@@ -20,7 +21,7 @@ You should have received a copy of the GNU General Public License
along with PyCAM. If not, see <http://www.gnu.org/licenses/>. along with PyCAM. If not, see <http://www.gnu.org/licenses/>.
""" """
__all__ = ["DropCutter", "PushCutter", "EngraveCutter", "Waterline"] __all__ = ["DropCutter", "PushCutter", "EngraveCutter", "ContourFollow"]
from pycam.Geometry.utils import INFINITE, epsilon, sqrt from pycam.Geometry.utils import INFINITE, epsilon, sqrt
from pycam.Geometry.Point import Point from pycam.Geometry.Point import Point
......
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