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

Function test_show_nurbs

tests/test_vis.py:143–152  ·  view source on GitHub ↗
(patch_vtk)

Source from the content-addressed store, hash-verified

141
142
143def test_show_nurbs(patch_vtk):
144
145 # smoke tests for Surface and Curve
146 surf = Surface.fromFace(plane(1, 1).toNURBS())
147 crv = Curve.fromEdge(segment((0, 0), (1, 1)).toNURBS())
148
149 show(surf)
150 show(crv)
151 show(ctrlPts(surf))
152 show(ctrlPts(crv))
153
154
155def test_screenshot(wp, patch_vtk):

Callers

nothing calls this directly

Calls 7

showFunction · 0.90
ctrlPtsFunction · 0.90
planeFunction · 0.85
segmentFunction · 0.85
fromFaceMethod · 0.80
toNURBSMethod · 0.80
fromEdgeMethod · 0.80

Tested by

no test coverage detected