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

Method test_toVtk

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

Source from the content-addressed store, hash-verified

5721 Face.makeNSidedSurface(outer_w, [[0, 0, 1]])
5722
5723 def test_toVtk(self):
5724
5725 from vtkmodules.vtkCommonDataModel import vtkPolyData
5726
5727 f = Face.makePlane(2, 2)
5728 vtk = f.toVtkPolyData(normals=False)
5729
5730 assert isinstance(vtk, vtkPolyData)
5731 assert vtk.GetNumberOfPolys() == 2
5732
5733 def test_iterators(self):
5734

Callers

nothing calls this directly

Calls 2

makePlaneMethod · 0.80
toVtkPolyDataMethod · 0.80

Tested by

no test coverage detected