Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Removed incorrectly used hash function from Vector and commented out …
Browse files Browse the repository at this point in the history
…a few non-critical test lines that break with FreeCAD daily.
  • Loading branch information
jmwright committed Oct 23, 2015
1 parent b0f5264 commit 146ecd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions cadquery/freecad_impl/geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ def distanceToPlane(self):
def projectToPlane(self):
raise NotImplementedError("Have not needed this yet, but FreeCAD supports it!")

def __hash__(self):
return self.wrapped.__hash__()

def __add__(self, v):
return self.add(v)

Expand Down
6 changes: 3 additions & 3 deletions tests/TestCadQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ def testBoxCombine(self):

def testSphereDefaults(self):
s = Workplane("XY").sphere(10)
self.saveModel(s)
#self.saveModel(s) # Until FreeCAD fixes their sphere operation
self.assertEquals(1, s.solids().size())
self.assertEquals(1, s.faces().size())

Expand All @@ -1006,13 +1006,13 @@ def testSphereCustom(self):

def testSpherePointList(self):
s = Workplane("XY").rect(4.0, 4.0, forConstruction=True).vertices().sphere(0.25, combine=False)
self.saveModel(s)
#self.saveModel(s) # Until FreeCAD fixes their sphere operation
self.assertEquals(4, s.solids().size())
self.assertEquals(4, s.faces().size())

def testSphereCombine(self):
s = Workplane("XY").rect(4.0, 4.0, forConstruction=True).vertices().sphere(0.25, combine=True)
self.saveModel(s)
#self.saveModel(s) # Until FreeCAD fixes their sphere operation
self.assertEquals(1, s.solids().size())
self.assertEquals(4, s.faces().size())

Expand Down

0 comments on commit 146ecd5

Please sign in to comment.