mesh3d#
Mesh classes and polydata builder functions for structured solar-physics grids.
This module provides the two primary mesh classes used throughout pyvisual —
SphericalMesh and CartesianMesh — together with the abstract
base classes and standalone polydata builder functions they depend on.
Class hierarchy#
_BaseFrameMesh (ABC)
├── CartesianMesh(pv.StructuredGrid, CartesianMeshFilters)
└── SphericalMesh(pv.RectilinearGrid, SphericalMeshFilters)
_BaseFrameFilters (ABC)
├── CartesianMeshFilters
└── SphericalMeshFilters
Polydata builders#
build_point_polydata()Unconnected point cloud from coordinate arrays.
build_spline_polydata()Line-connected splines from stacked coordinate arrays.
build_slice_polydata()Quad-faced surface patch from 2-D coordinate arrays.
build_surface_polydata()Reconstructed surface from scattered points.
build_thompson_sphere()Sphere centered halfway between the origin and an observer position.
Operator support#
Both mesh classes inherit the full arithmetic suite from _BaseFrameMesh
(+, -, *, /, //, %, **, unary neg/pos/abs)
and __array_ufunc__(), so that NumPy ufuncs (e.g.
np.sqrt(mesh)) operate element-wise on the active scalar field and return a
new mesh instance of the same type.
Classes
Abstract base class defining the filter interface for frame-aware mesh classes. |
|
|
Abstract base class shared by |
|
A |
Filter operations for |
|
|
A |
Filter operations for |
Functions
|
Build an unconnected |
|
Build a quad-faced |
|
Build a line-connected |
|
Build a surface mesh from scattered coordinate arrays using a reconstruction method. |
|
Build a Thomson sphere centered halfway between the origin and an observer position. |