DataObject

Contents

DataObject#

The pyvista.DataObject class is a set of common methods and attributes for all PyVista types. These objects have no spatial reference, but simply hold data.

See PyVista Data Model for further details.

pyvista.DataObject(*args, **kwargs)

Methods common to all wrapped data objects.

Table#

The table class is a non-spatially referenced data object that can be used on VTK pipelines and holds arrays of data.

pyvista.Table(*args, **kwargs)

Wrapper for the vtkTable class.

Textures#

The pyvista.Texture class is used to load and represent images that can be placed on the surface of pyvista.DataSet that have texture coordinates.

pyvista.Texture(*args, **kwargs)

Wrap vtkTexture.

These functions create a pyvista.Texture from image data or arrays. To load a texture from an image file, see pyvista.read_texture().

pyvista.cubemap([path, prefix, ext])

Construct a cubemap from 6 images from a directory.

pyvista.cubemap_from_filenames(image_paths)

Construct a cubemap from 6 images.

pyvista.image_to_texture(image)

Convert pyvista.ImageData to a pyvista.Texture.

pyvista.numpy_to_texture(image)

Convert a NumPy image array to a pyvista.Texture.

See also

Applying Textures

Apply textures to meshes.

Physically Based Rendering

Use a cubemap as an environment texture.

texture_map_to_plane()

Generate texture coordinates for a dataset.