.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/TPMS/infill_gyroid.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_examples_TPMS_infill_gyroid.py: Gyroid infilled by a gyroid =========================== A gyroid sheet used as the envelope of a finer gyroid infill: a hierarchical TPMS. .. GENERATED FROM PYTHON SOURCE LINES 8-28 .. code-block:: Python import pyvista as pv from microgen import Infill, Tpms from microgen.shape.surface_functions import gyroid tpms = Tpms( surface_function=gyroid, offset=1.0, resolution=30, ) infill = Infill( obj=tpms.sheet, surface_function=gyroid, cell_size=0.1, offset=0.5, resolution=15, ) .. GENERATED FROM PYTHON SOURCE LINES 29-33 .. code-block:: Python pl = pv.Plotter() pl.add_mesh(infill.sheet, color="#ef7d2d") pl.add_axes() pl.show() .. image-sg:: /examples/TPMS/images/sphx_glr_infill_gyroid_001.png :alt: infill gyroid :srcset: /examples/TPMS/images/sphx_glr_infill_gyroid_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 36.682 seconds) .. _sphx_glr_download_examples_TPMS_infill_gyroid.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: infill_gyroid.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: infill_gyroid.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: infill_gyroid.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_