Commit 8ee8595b authored by sumpfralle's avatar sumpfralle

removed Point's method 'size' (using ".norm" instead)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@804 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 1ca60524
......@@ -93,9 +93,6 @@ class Point:
def dot(self, p):
return self.x * p.x + self.y * p.y + self.z * p.z
def size(self):
return sqrt(self.dot(self))
def cross(self, p):
return Point(self.y * p.z - p.y * self.z, p.x * self.z - self.x * p.z,
self.x * p.y - p.x * self.y)
......
......@@ -166,9 +166,9 @@ class Polygon(TransformableContainer):
result = []
for index in range(len(self._points) - 1):
result.append(self._points[index + 1].sub(
self._points[index]).size())
self._points[index]).norm)
if self._is_closed:
result.append(self._points[0].sub(self._points[-1]).size())
result.append(self._points[0].sub(self._points[-1]).norm)
return result
def get_max_inside_distance(self):
......
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