Commit df326beb authored by sumpfralle's avatar sumpfralle

fixed cutter comparison code (before: only radius was compared)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@253 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 73dd87fb
......@@ -30,7 +30,7 @@ class BaseCutter:
cutters with a shape depending on more than just the radius.
See the ToroidalCutter for an example.
"""
if isinstance(other, BaseCutter):
if self.__class__ == other.__class__:
return cmp(self.radius, other.radius)
else:
# just return a string comparison
......
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