.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_example1.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_auto_examples_plot_example1.py: Cloud meshing ============= .. GENERATED FROM PYTHON SOURCE LINES 7-20 .. image-sg:: /auto_examples/images/sphx_glr_plot_example1_001.png :alt: Triangulation of sample :srcset: /auto_examples/images/sphx_glr_plot_example1_001.png :class: sphx-glr-single-img .. code-block:: Python import openturns as ot import openturns.viewer as otv import otmeshing mesher = otmeshing.CloudMesher() points = ot.JointDistribution([ot.Uniform()] * 2).getSample(100) triangulation = mesher.build(points) graph = triangulation.draw() graph.setLegendPosition("upper left") graph.setTitle("Triangulation of sample") view = otv.View(graph) otv.View.ShowAll() .. _sphx_glr_download_auto_examples_plot_example1.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_example1.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_example1.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_example1.zip `