MCPcopy
hub / github.com/CadQuery/cadquery / testTwistedLoft

Method testTwistedLoft

tests/test_cadquery.py:2797–2808  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2795 self.saveModel(s3)
2796
2797 def testTwistedLoft(self):
2798 s = (
2799 Workplane("XY")
2800 .polygon(8, 20.0)
2801 .workplane(offset=4.0)
2802 .transformed(rotate=Vector(0, 0, 15.0))
2803 .polygon(8, 20)
2804 .loft()
2805 )
2806 self.assertEqual(10, s.faces().size())
2807 self.assertEqual(1, s.solids().size())
2808 self.saveModel(s)
2809
2810 def testUnions(self):
2811 # duplicates a memory problem of some kind reported when combining lots of objects

Callers

nothing calls this directly

Calls 10

saveModelMethod · 0.95
WorkplaneClass · 0.85
VectorClass · 0.85
loftMethod · 0.80
transformedMethod · 0.80
workplaneMethod · 0.80
polygonMethod · 0.45
sizeMethod · 0.45
facesMethod · 0.45
solidsMethod · 0.45

Tested by

no test coverage detected