_BaseFrameMesh#
- class _BaseFrameMesh(*args, data=None, dataid=None, iformat=None, **kwargs)[source]#
Bases:
ABCAbstract base class shared by
SphericalMeshandCartesianMesh.Provides:
A
@singledispatchmethoddispatch mechanism (_dispatch_input) that acceptsstr/pathlib.Path(HDF file), raw arrays or scalars, or an existingpyvista.DataSet.The full NumPy arithmetic operator suite (
+,-,*,/,//,%,**, unaryneg/pos/abs) operating element-wise on the active scalar field.__array_ufunc__()so that NumPy ufuncs (e.g.np.sqrt(mesh)) work transparently.
Subclasses must define
MESH_FRAME,_parse_iformat(),_set_arrays(), and_dispatch_pyvista().- Attributes:
- MESH_FRAME
str Class-level canonical frame name (
'spherical'or'cartesian').
- MESH_FRAME
Methods
|
Handle PyVista dataset input by forwarding to |
|
Apply a binary ufunc to |
Dispatch constructor input to the appropriate parsing handler. |
|
|
Populate this mesh from an existing |
|
Parse |
|
Normalise the format string, reorder scales, and call |
|
Assign coordinate arrays and scalar data to the underlying PyVista dataset. |
Properties