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

Function exportVRML

cadquery/occ_impl/exporters/assembly.py:424–437  ·  view source on GitHub ↗

Export an assembly to a vrml file using vtk.

(
    assy: AssemblyProtocol,
    path: str,
    tolerance: float = 1e-3,
    angularTolerance: float = 0.1,
)

Source from the content-addressed store, hash-verified

422
423
424def exportVRML(
425 assy: AssemblyProtocol,
426 path: str,
427 tolerance: float = 1e-3,
428 angularTolerance: float = 0.1,
429):
430 """
431 Export an assembly to a vrml file using vtk.
432 """
433
434 exporter = vtkVRMLExporter()
435 exporter.SetFileName(path)
436 exporter.SetRenderWindow(_vtkRenderWindow(assy, tolerance, angularTolerance))
437 exporter.Write()
438
439
440def exportGLTF(

Callers 2

test_vrml_exportFunction · 0.90
exportMethod · 0.85

Calls 2

_vtkRenderWindowFunction · 0.85
WriteMethod · 0.80

Tested by 1

test_vrml_exportFunction · 0.72