.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gen/examples/output_parsing/plot_wedges.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gen_examples_output_parsing_plot_wedges.py: Plotting of 3D wedges ===================== Plot the 3D geometry of wedges and end-spacers Download Input files * :download:`dipole_2d.data <../../../../../examples/input_files/dipole_3d.data>` * :download:`dipole_2d.post.xml <../../../../../examples/input_files/dipole_3d.post.xml>` .. GENERATED FROM PYTHON SOURCE LINES 14-18 Setting up ---------- Standard Loading of input, Parsing and Initializing RoxiePlotOutputs object .. GENERATED FROM PYTHON SOURCE LINES 18-24 .. code-block:: Python from roxieapi.output.plots import RoxiePlotOutputs plots = RoxiePlotOutputs( "../input_files/dipole_3d.post.xml", "../input_files/dipole_3d.data" ) .. GENERATED FROM PYTHON SOURCE LINES 25-27 Creating plot object and plotting --------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 27-33 .. code-block:: Python plotter = plots.plots3d._create_plot() spacers = plots.plots3d.get_endspacer_geometry(plots.output.plots3D[0], 1, 1) plotter.add_mesh(spacers) plotter.show() .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /gen/examples/output_parsing/images/sphx_glr_plot_wedges_001.png :alt: plot wedges :srcset: /gen/examples/output_parsing/images/sphx_glr_plot_wedges_001.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /builds/roxie/roxie-api/docs/source/gen/examples/output_parsing/images/sphx_glr_plot_wedges_001.vtksz .. GENERATED FROM PYTHON SOURCE LINES 34-36 Create output file ------------------ .. GENERATED FROM PYTHON SOURCE LINES 36-43 .. code-block:: Python plotter = plots.plots3d._create_plot() plotter.add_mesh(spacers) plotter.export_html("export_wedges_3d.html") # Save vtk file spacers.save("spacers.vtm") plotter.show() .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /gen/examples/output_parsing/images/sphx_glr_plot_wedges_002.png :alt: plot wedges :srcset: /gen/examples/output_parsing/images/sphx_glr_plot_wedges_002.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /builds/roxie/roxie-api/docs/source/gen/examples/output_parsing/images/sphx_glr_plot_wedges_002.vtksz .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.162 seconds) .. _sphx_glr_download_gen_examples_output_parsing_plot_wedges.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_wedges.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_wedges.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_wedges.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_