VTKPlotter

class pyvsim.System.VTKPlotter[source]

This class is a Facade to VTK. It takes a snapshot of the assembly tree and generates a VTK plot.

Methods

class VTKWindow(displayAxes=True)[source]

A window to plot objects using VTK. Even though this stays in a separate thread, a error in VTK interface to Python makes it wait until the window is closed.

Methods

VTKPlotter.display(displayAxes=True)[source]

Creates a window and plots all the objects found during the last visit to the parts tree.

I.e., before running this command, you should do:

main_assembly.acceptVisitor(plotter)

Attention: This will stop the program execution until the window is closed. This is a “feature” of matplotlib and VTK.

VTKPlotter.lineActor(obj)[source]

Returns an object of type vtkLODActor for rendering within a VTK pipeline

VTKPlotter.polyActor(obj)[source]

Returns an object of type vtkLODActor for rendering within a VTK pipeline

This Page