.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/TPMS/infill_bunny.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_bunny.py: Gyroid infill of a mesh ======================= Fill the Stanford bunny with a gyroid with :class:`microgen.Infill`. .. GENERATED FROM PYTHON SOURCE LINES 7-24 .. code-block:: Python import pyvista as pv from pyvista import examples from microgen import Infill from microgen.shape.surface_functions import gyroid bunny = examples.download_bunny() infill = Infill( obj=bunny, surface_function=gyroid, cell_size=0.015, offset=0.5, resolution=10, ) .. GENERATED FROM PYTHON SOURCE LINES 25-30 .. code-block:: Python pl = pv.Plotter() pl.add_mesh(infill.sheet, color="#ef7d2d") pl.add_axes() pl.view_xy() pl.show() .. image-sg:: /examples/TPMS/images/sphx_glr_infill_bunny_001.png :alt: infill bunny :srcset: /examples/TPMS/images/sphx_glr_infill_bunny_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 21.203 seconds) .. _sphx_glr_download_examples_TPMS_infill_bunny.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: infill_bunny.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: infill_bunny.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: infill_bunny.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_