def testCounterBores(self): """ Tests making a set of counterbored holes in a face """ c = CQ(makeCube(3.0)) pnts = [(-1.0, -1.0), (0.0, 0.0), (1.0, 1.0)] c.faces(">Z").workplane().pushPoints(pnts).cboreHole(0.1, 0.25, 0.25, 0.75) self.assertEquals(18, c.faces().size()) self.saveModel(c) # Tests the case where the depth of the cboreHole is not specified c2 = CQ(makeCube(3.0)) pnts = [(-1.0, -1.0), (0.0, 0.0), (1.0, 1.0)] c2.faces(">Z").workplane().pushPoints(pnts).cboreHole(0.1, 0.25, 0.25) self.assertEquals(15, c2.faces().size())
def testCounterBores(self): """Tests making a set of counterbored holes in a face""" c = CQ(makeCube(3.0)) pnts = [(-1.0, -1.0), (0.0, 0.0), (1.0, 1.0)] c.faces(">Z").workplane().pushPoints(pnts).cboreHole( 0.1, 0.25, 0.25, .75) self.assertEquals(18, c.faces().size()) self.saveModel(c)
def testCounterBores(self): """Tests making a set of counterbored holes in a face""" c = CQ(makeCube(3.0)) pnts=[ (-1.0,-1.0),(0.0,0.0),(1.0,1.0) ] c.faces(">Z").workplane().pushPoints(pnts).cboreHole(0.1,0.25,0.25,.75) self.assertEquals(18,c.faces().size() ) self.saveModel(c)