Export an assembly to a vrml file using vtk.
(
assy: AssemblyProtocol,
path: str,
tolerance: float = 1e-3,
angularTolerance: float = 0.1,
)
| 422 | |
| 423 | |
| 424 | def 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 | |
| 440 | def exportGLTF( |