pyvista.DataSet#
- class DataSet(*args, **kwargs)[source]#
Methods in common to spatially referenced objects.
- Parameters:
- *args
Any extra args are passed as option to spatially referenced objects.
- **kwargs
Any extra keyword args are passed as option to spatially referenced objects.
Methods#
|
Extract the points of this dataset and return a |
|
Extract the points of this dataset and return a |
Get a new representation of this object as a |
|
|
Get the cell neighbors of the ind-th cell. |
|
Get consecutive levels of cell neighbors. |
Remove all cell arrays. |
|
Remove all arrays from point/cell/field data. |
|
Remove all point arrays. |
|
|
Overwrite this dataset inplace with the new dataset's geometries and data. |
|
Copy pyvista meta data onto this object from another object. |
|
Find the index of cells whose bounds intersect a line. |
|
Find the index of cells that intersect a line. |
|
Find the index of cells in this mesh within bounds. |
|
Find index of closest cell in this mesh to the given point. |
|
Find index of closest point in this mesh to the given point. |
|
Find index of a cell that contains the given point. |
|
Search both point, cell and field data for an array. |
|
Get the association of an array. |
|
Return a |
|
Get the min and max of a named array. |
|
Plot a PyVista, numpy, or vtk object. |
Get the cell IDs that use the ind-th point. |
|
|
Return whether one or more points are inside a cell. |
Get the point neighbors of the ind-th point. |
|
|
Get consecutive levels of point neighbors. |
|
Change array name by searching for the array then renaming it. |
|
Find the scalars by name and appropriately sets it as active. |
|
Find the tensors by name and appropriately sets it as active. |
|
Find the vectors by name and appropriately sets it as active. |
Attributes#
Return the active normals as an array. |
|
Return the active scalars as an array. |
|
Return the active scalar's association and name. |
|
Return the name of the active scalars. |
|
Return the active tensors array. |
|
Return the active tensor's field and name: [field, name]. |
|
Return the name of the active tensor array. |
|
Return the active texture coordinates on the points. |
|
Return the active vectors array. |
|
Return the active vector's association and name. |
|
Return the name of the active vectors array. |
|
Return the mesh area if 2D. |
|
Return a list of array names for the dataset. |
|
Return a glyph representation of the active vector data as arrows. |
|
Return the bounding box of this dataset. |
|
A generator that provides an easy way to loop over all cells. |
|
Return cell data as DataSetAttributes. |
|
Return the center of the bounding box. |
|
Return |
|
Return the length of the diagonal of the bounding box. |
|
Return the number of arrays present in the dataset. |
|
Return the number of cells in the entire dataset. |
|
Return the number of points in the entire dataset. |
|
Return the number of cells. |
|
Return the number of points. |
|
Return point data as DataSetAttributes. |
|
Return a reference to the points as a numpy object. |
|
Return the mesh volume. |