MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testCone

Method testCone

tests/test_cadquery.py:2231–2238  ·  view source on GitHub ↗

Tests that a simple cone works

(self)

Source from the content-addressed store, hash-verified

2229 self.saveModel(res)
2230
2231 def testCone(self):
2232 """
2233 Tests that a simple cone works
2234 """
2235 s = Solid.makeCone(0, 1.0, 2.0)
2236 t = CQ(s)
2237 self.saveModel(t)
2238 self.assertEqual(2, t.faces().size())
2239
2240 def testFillet(self):
2241 """

Callers

nothing calls this directly

Calls 4

saveModelMethod · 0.95
makeConeMethod · 0.80
sizeMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected