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

Method testVertex

tests/test_cad_objects.py:56–62  ·  view source on GitHub ↗

Tests basic vertex functions

(self)

Source from the content-addressed store, hash-verified

54 Vector(1, 2, 3, 4)
55
56 def testVertex(self):
57 """
58 Tests basic vertex functions
59 """
60 v = Vertex.makeVertex(1, 1, 1)
61 self.assertEqual(1, v.X)
62 self.assertEqual(Vector, type(v.Center()))
63
64 def testBasicBoundingBox(self):
65 v = Vertex.makeVertex(1, 1, 1)

Callers

nothing calls this directly

Calls 2

makeVertexMethod · 0.80
CenterMethod · 0.45

Tested by

no test coverage detected