API Overview
The main functionality of pysplashsurf is provided by the reconstruction_pipeline() function which implements all features of the splashsurf CLI including the surface reconstruction from particles and optional post-processing, and the reconstruct_surface() function which only performs the surface reconstruction itself.
Data types: The functions of the package accept Python float for scalar parameters and Numpy arrays of data-type np.float32 or np.float64 for array inputs (e.g. particle positions).
Outputs will be of the same float precision as the input arrays.
Array-like inputs have to be contiguous (C-order) in memory.
All array-like and object type (e.g. Aabb3d) inputs to a function call have to use the same float data-type.
Functions
|
Performs specialized decimation on the given mesh to prevent "barnacles" when applying weighted Laplacian smoothing |
|
Checks the consistency of a reconstructed surface mesh (watertightness, manifoldness), optionally returns a string with details if problems are found |
|
Converts triangles to quads by merging triangles sharing an edge if they fulfill the given criteria |
Laplacian smoothing of a normal field |
|
|
Laplacian smoothing of mesh vertices with feature weights |
|
Performs a standard marching cubes triangulation of a 3D array of values |
|
Performs simplification on the given mesh inspired by the "Compact Contouring"/"Mesh displacement" approach by Doug Moore and Joe Warren |
Performs a neighborhood search using spatial hashing (multithreaded implementation) |
|
|
Performs a surface reconstruction from the given particles without additional post-processing |
|
Runs the surface reconstruction pipeline for the given particle positions with optional post-processing |
Classes
|
Three-dimensional axis-aligned bounding box defined by its minimum and maximum corners |
|
|
|
Mesh with attached point and cell attributes |
Mixed triangle and quad surface mesh in 3D |
|
Per particle neighborhood lists |
|
|
Interpolator of per-particle quantities to arbitrary points using SPH interpolation (with cubic kernel) |
Result returned by surface reconstruction functions with surface mesh and other data |
|
Triangle surface mesh in 3D |
|
Struct containing the parameters of the uniform grid used for the surface reconstruction |
|
Vertex-vertex connectivity of a mesh |
Enums
|
Enum specifying the type of mesh wrapped by a |