pyvista.PartitionedDataSet

pyvista.PartitionedDataSet#

class PartitionedDataSet(*args, **kwargs)[source]#

Wrapper for the vtkPartitionedDataSet class.

DataSet which composite dataset to encapsulates a dataset consisting of partitions.

Examples

>>> import pyvista as pv
>>> data = [
...     pv.Sphere(center=(2, 0, 0)),
...     pv.Cube(center=(0, 2, 0)),
...     pv.Cone(),
... ]
>>> partitions = pv.PartitionedDataSet(data)
>>> len(partitions)
3

Methods

PartitionedDataSet.append(dataset)

Add a data set to the next partition index.

PartitionedDataSet.copy([deep])

Return a copy of the PartitionedDataSet.

PartitionedDataSet.copy_meta_from(ido, deep)

Copy pyvista meta data onto this object from another object.

PartitionedDataSet.insert(index, dataset)

Insert data before index.

PartitionedDataSet.pop([index])

Pop off a partition at the specified index are not supported.

PartitionedDataSet.wrap_nested()

Ensure that all nested data structures are wrapped as PyVista datasets.

Attributes

PartitionedDataSet.n_partitions

Return the number of partitions.