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

Method testPlaneEqual

tests/test_cad_objects.py:524–544  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

522 self.assertEqual(2, len(e.Vertices()))
523
524 def testPlaneEqual(self):
525 # default orientation
526 self.assertEqual(
527 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 1)),
528 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 1)),
529 )
530 # moved origin
531 self.assertEqual(
532 Plane(origin=(2, 1, -1), xDir=(1, 0, 0), normal=(0, 0, 1)),
533 Plane(origin=(2, 1, -1), xDir=(1, 0, 0), normal=(0, 0, 1)),
534 )
535 # moved x-axis
536 self.assertEqual(
537 Plane(origin=(0, 0, 0), xDir=(1, 1, 0), normal=(0, 0, 1)),
538 Plane(origin=(0, 0, 0), xDir=(1, 1, 0), normal=(0, 0, 1)),
539 )
540 # moved z-axis
541 self.assertEqual(
542 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 1, 1)),
543 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 1, 1)),
544 )
545
546 def testPlaneNotEqual(self):
547 # type difference

Callers

nothing calls this directly

Calls 1

PlaneClass · 0.85

Tested by

no test coverage detected