container¶
- marxs.visualization.threejs.container(obj, display, outfile)[source] [edit on github]¶
Recursivey output three.js commands to print all elements of a container.
Output of each element can be a dict (if it is a leaf) or a list (if it is a container). We need to flatten the list here to avoid arbitrarily deep recursion.
- 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