plot_object¶
- marxs.visualization.threejs.plot_object(obj, display, outfile, **kwargs)[source] [edit on github]¶
Plot any MARXS object with three.js as backend.
This method will inspect the object that is passed in and select the correct plotting method for its shape. Javascript code to generate the correct represenation in three.js is added to the open file
outfile
.- Parameters:
- obj
marxs.base.MarxsElement
The element that should be plotted.
- displaydict of None
Dictionary with display settings.
- outfilefile handle
Output is written to this file.
- obj