Commit fbe8c95c authored by sumpfralle's avatar sumpfralle

fixed typos in Model.py

added "get_lines" for contour model


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@366 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent d0917ab6
......@@ -62,7 +62,7 @@ class BaseModel(object):
def __add__(self, other_model):
""" combine two models """
result = self.__cls__()
result = self.__class__()
for item_group in self._item_groups + other_model._item_groups:
for item in item_group:
result.append(item)
......@@ -97,7 +97,7 @@ class BaseModel(object):
abs(self.miny), abs(self.maxz), abs(self.minz))
def subdivide(self, depth):
model = self.__cls__()
model = self.__class__()
for item_group in self._item_groups:
for item in item_group:
for s in item.subdivide(depth):
......@@ -182,3 +182,6 @@ class ContourModel(BaseModel):
if isinstance(item, Line):
self._lines.append(item)
def get_lines(self):
return self._lines[:]
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