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

Method testLoftCombine

tests/test_cadquery.py:528–544  ·  view source on GitHub ↗

test combining a lof with another feature :return:

(self)

Source from the content-addressed store, hash-verified

526 self.assertEqual(str(err), "More than one wire or face is required")
527
528 def testLoftCombine(self):
529 """
530 test combining a lof with another feature
531 :return:
532 """
533 s = (
534 Workplane("front")
535 .box(4.0, 4.0, 0.25)
536 .faces(">Z")
537 .circle(1.5)
538 .workplane(offset=3.0)
539 .rect(0.75, 0.5)
540 .loft(combine=True)
541 )
542 self.saveModel(s)
543 # self.assertEqual(1,s.solids().size() )
544 # self.assertEqual(8,s.faces().size() )
545
546 def testRevolveCylinder(self):
547 """

Callers

nothing calls this directly

Calls 8

saveModelMethod · 0.95
WorkplaneClass · 0.85
loftMethod · 0.80
workplaneMethod · 0.80
boxMethod · 0.80
rectMethod · 0.45
circleMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected