:orphan:
Example gallery
===============
This gallery is split into two sections:
- ``Basic tutorials``: short examples that introduce one core operation at a time
- ``Advanced examples``: longer workflows for optimization and continuous metrics
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Basic tutorials
===============
These examples introduce one core ``graphlow`` operation at a time.
Read them in order if you are new to the project:
1. create a ``TensorMesh`` from PyVista
2. compute cell volumes on a volume mesh
3. extract a boundary surface
4. compute enclosed volume on a watertight surface
5. transfer data between points and cells
6. inspect oriented face area vectors
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/basic/images/thumb/sphx_glr_create_tensor_mesh_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/basic/create_tensor_mesh`
.. raw:: html
Create a TensorMesh from a PyVista mesh
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/basic/images/thumb/sphx_glr_cell_volumes_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/basic/cell_volumes`
.. raw:: html
Compute cell volumes on a volume mesh
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/basic/images/thumb/sphx_glr_extract_surface_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/basic/extract_surface`
.. raw:: html
Extract a boundary surface from a volume mesh
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/basic/images/thumb/sphx_glr_surface_enclosed_volume_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/basic/surface_enclosed_volume`
.. raw:: html
Compute enclosed volume on a surface mesh
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/basic/images/thumb/sphx_glr_point_cell_mapping_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/basic/point_cell_mapping`
.. raw:: html
Transfer data between points and cells
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/basic/images/thumb/sphx_glr_face_area_vectors_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/basic/face_area_vectors`
.. raw:: html
Inspect oriented face area vectors
.. thumbnail-parent-div-close
.. raw:: html
Advanced examples
=================
These examples assume you already understand the basic ``TensorMesh``,
geometry, and topology workflows.
They focus on optimization loops, continuous metrics, and richer end-to-end
applications.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/advanced/images/thumb/sphx_glr_gradient_thumb.png
:alt:
:doc:`/example_gallery/auto_examples/advanced/gradient`
.. raw:: html
Compute gradient of scalar field on a mesh
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/advanced/images/thumb/sphx_glr_target_fitting_thumb.gif
:alt:
:doc:`/example_gallery/auto_examples/advanced/target_fitting`
.. raw:: html
Target fitting: minimize Chamfer distance to a point cloud
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/advanced/images/thumb/sphx_glr_shape_optimization_thumb.gif
:alt:
:doc:`/example_gallery/auto_examples/advanced/shape_optimization`
.. raw:: html
Shape optimization: minimize surface area under volume constraint
.. raw:: html
.. only:: html
.. image:: /example_gallery/auto_examples/advanced/images/thumb/sphx_glr_sphere_eversion_continuous_metrics_thumb.gif
:alt:
:doc:`/example_gallery/auto_examples/advanced/sphere_eversion_continuous_metrics`
.. raw:: html
Continuous sphere eversion with graphlow geometry APIs
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/example_gallery/auto_examples/basic/index.rst
/example_gallery/auto_examples/advanced/index.rst
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery