.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/TPMS/fischer_koch_s.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_fischer_koch_s.py: Fischer-Koch S surface ====================== The zero level set of the Fischer-Koch S function on a 5 x 5 x 5 array of cells. .. GENERATED FROM PYTHON SOURCE LINES 7-15 .. code-block:: Python from microgen import Tpms from microgen.shape.surface_functions import fischer_koch_s geometry = Tpms(surface_function=fischer_koch_s, repeat_cell=5, offset=0) mesh = geometry.generate_surface_mesh(type_part="surface") mesh.save("fischer_koch_s.vtk") .. GENERATED FROM PYTHON SOURCE LINES 16-17 .. code-block:: Python mesh.plot(smooth_shading=True, color="#ef7d2d") .. image-sg:: /examples/TPMS/images/sphx_glr_fischer_koch_s_001.png :alt: fischer koch s :srcset: /examples/TPMS/images/sphx_glr_fischer_koch_s_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.111 seconds) .. _sphx_glr_download_examples_TPMS_fischer_koch_s.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: fischer_koch_s.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: fischer_koch_s.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: fischer_koch_s.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_