PartitionedDataSet#
- class PartitionedDataSet(*args, **kwargs)[source]#
Wrapper for the vtkPartitionedDataSet class.
DataSet which composite dataset to encapsulates a dataset consisting of partitions.
Examples#
Download Python source code | Download Jupyter notebook
>>> 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
Used In#
Docstring Examples
PartitionedDataSet.copy(1 use)PartitionedDataSet.is_empty(1 use)XMLPartitionedDataSetReader(1 use)
Attributes#
Return |
|
Return the number of partitions. |
Inherited Attributes#
Return the actual size of the dataset object. |
|
Return FieldData as DataSetAttributes. |
|
Get address of the underlying VTK C++ object. |
|
Set or return a user-specified data dictionary. |
Methods#
|
Add a data set to the next partition index. |
|
Return a copy of the PartitionedDataSet. |
|
Copy pyvista meta data onto this object from another object. |
|
Get the non-NaN min and max of a named array. |
|
Insert data before index. |
|
Plot a PyVista, NumPy, or VTK object. |
|
Pop off a partition at the specified index are not supported. |
Ensure that all nested data structures are wrapped as PyVista datasets. |
Inherited Methods#
Add field data. |
|
Convert this |
|
Remove all field data. |
|
Copy the data attributes of the input dataset object. |
|
Copy the structure (geometry and topology) of the input dataset object. |
|
Overwrite this data object with another data object as a deep copy. |
|
Return the header stats of this dataset. |
|
Save this vtk object to file. |
|
Shallow copy the given mesh to this mesh. |