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

Method test_tessellate

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

Source from the content-addressed store, hash-verified

5816 w.invoke(lambda x, y: 1)
5817
5818 def test_tessellate(self):
5819
5820 # happy flow
5821 verts, tris = Face.makePlane(1, 1).tessellate(1e-3)
5822
5823 assert len(verts) == 4
5824 assert len(tris) == 2
5825
5826 # this should not crash, but return no verts
5827 verts, _ = Face.makePlane(1e-9, 1e-9).tessellate(1e-3)
5828
5829 assert len(verts) == 0
5830
5831 def test_export(self):
5832

Callers

nothing calls this directly

Calls 2

tessellateMethod · 0.80
makePlaneMethod · 0.80

Tested by

no test coverage detected