|
core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
|
A signed-distance field sampled on a regular axis-aligned grid (negative inside solid). More...
#include <grid_sdf.hpp>
Public Member Functions | |
| double | at (Index i, Index j, Index k) const |
| Raw sample lookup at integer grid index (i,j,k); no bounds checking. | |
| double | eval (const Vec< 3 > &p) const |
Trilinearly-interpolated signed distance at world point p. | |
Public Attributes | |
| std::vector< float > | values |
| Sample values, x-fastest: idx = i + j*nx + k*nx*ny. | |
| IVec< 3 > | dims {} |
| Sample count per axis (nx, ny, nz). | |
| Vec< 3 > | origin {} |
| World position of sample (0,0,0). | |
| Vec< 3 > | spacing {1, 1, 1} |
| World-space distance between samples per axis. | |
A signed-distance field sampled on a regular axis-aligned grid (negative inside solid).
Models the peclet::core::geom::Sdf concept via eval(). Storage is x-fastest, matching the suite indexing convention and the VTI fields produced by flow/dem.
Definition at line 23 of file grid_sdf.hpp.
Raw sample lookup at integer grid index (i,j,k); no bounds checking.
Definition at line 30 of file grid_sdf.hpp.
Referenced by eval().
| std::vector<float> peclet::core::geom::GridSdf::values |
Sample values, x-fastest: idx = i + j*nx + k*nx*ny.
Definition at line 24 of file grid_sdf.hpp.
Referenced by at(), peclet::core::geom::readVti(), peclet::core::geom::sample(), and peclet::core::geom::writeVti().
| IVec<3> peclet::core::geom::GridSdf::dims {} |
Sample count per axis (nx, ny, nz).
Definition at line 25 of file grid_sdf.hpp.
Referenced by at(), eval(), peclet::core::geom::readVti(), peclet::core::geom::sample(), and peclet::core::geom::writeVti().
| Vec<3> peclet::core::geom::GridSdf::origin {} |
World position of sample (0,0,0).
Definition at line 26 of file grid_sdf.hpp.
Referenced by eval(), peclet::core::geom::readVti(), peclet::core::geom::sample(), and peclet::core::geom::writeVti().
| Vec<3> peclet::core::geom::GridSdf::spacing {1, 1, 1} |
World-space distance between samples per axis.
Definition at line 27 of file grid_sdf.hpp.
Referenced by eval(), peclet::core::geom::readVti(), peclet::core::geom::sample(), and peclet::core::geom::writeVti().