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

Function exportVTP

cadquery/occ_impl/exporters/vtk.py:43–50  ·  view source on GitHub ↗
(
    shape: Shape, fname: str, tolerance: float = 0.1, angularTolerance: float = 0.1
)

Source from the content-addressed store, hash-verified

41
42
43def exportVTP(
44 shape: Shape, fname: str, tolerance: float = 0.1, angularTolerance: float = 0.1
45):
46
47 writer = vtkXMLPolyDataWriter()
48 writer.SetFileName(fname)
49 writer.SetInputData(shape.toVtkPolyData(tolerance, angularTolerance))
50 writer.Write()
51
52
53def toString(

Callers 1

exportFunction · 0.85

Calls 2

toVtkPolyDataMethod · 0.80
WriteMethod · 0.80

Tested by

no test coverage detected