File: index.rst

package info (click to toggle)
python-pyvista 0.46.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176,968 kB
  • sloc: python: 94,346; sh: 216; makefile: 70
file content (88 lines) | stat: -rw-r--r-- 2,083 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
API Reference
*************

.. toctree::
   :caption: API Reference
   :hidden:

   core/index
   plotting/index
   utilities/index
   readers/index
   examples/index

In this section, you can learn more about how PyVista wraps different VTK mesh
types and how you can leverage powerful 3D plotting and mesh analysis tools.
Highlights of the API include:

* Pythonic interface to VTK's Python bindings
* Filtering/plotting tools built for interactivity (see :ref:`widgets`)
* Direct access to common VTK filters (see :ref:`filters`)
* Intuitive plotting routines with `matplotlib`_ similar syntax (see
  :ref:`plotting`)


.. card:: Core API
   :link: core-api-index
   :link-type: ref
   :class-title: pyvista-card-title

   Learn more about PyVista's different mesh types and direct access to common
   VTK filters.

   .. jupyter-execute::

      >>> import pyvista as pv
      >>> mesh = pv.Sphere()
      >>> sliced = mesh.slice()
      >>> sliced.length


.. card:: Plotting API
   :link: plotting-api-index
   :link-type: ref
   :class-title: pyvista-card-title

   Explore PyVista's robust plotting interface for visualizing the core data
   structures.

   .. jupyter-execute::

      >>> import pyvista as pv
      >>> mesh = pv.Cube()
      >>> pl = pv.Plotter()
      >>> actor = pl.add_mesh(mesh, scalars=mesh.points)
      >>> actor.prop

.. card:: Readers
   :link: reader_api
   :link-type: ref
   :class-title: pyvista-card-title

   Use PyVista's Reader classes to read data files using
   :func:`pyvista.get_reader`.

   .. jupyter-execute::

      >>> import pyvista as pv
      >>> from pyvista import examples
      >>> reader = pv.get_reader(examples.hexbeamfile)
      >>> reader


.. card:: Utilities
   :link: utilities-api-index
   :link-type: ref
   :class-title: pyvista-card-title

   Utilize PyVista's helper modules, conversion tools, and geometric object
   creation routines.

   .. jupyter-execute::

      >>> import pyvista as pv
      >>> mesh = pv.ParametricSuperEllipsoid(xradius=0.1)
      >>> mesh


.. _matplotlib: https://matplotlib.org/