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

Method testVertices

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

Source from the content-addressed store, hash-verified

518 self.assertTupleAlmostEquals((1.0, 2.0, 4.0), e2.Center().toTuple(), 3)
519
520 def testVertices(self):
521 e = Shape.cast(BRepBuilderAPI_MakeEdge(gp_Pnt(0, 0, 0), gp_Pnt(1, 1, 0)).Edge())
522 self.assertEqual(2, len(e.Vertices()))
523
524 def testPlaneEqual(self):
525 # default orientation

Callers

nothing calls this directly

Calls 2

castMethod · 0.80
VerticesMethod · 0.45

Tested by

no test coverage detected