core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::geom::CandidateGridView< Real > Struct Template Reference

Non-owning candidate grid: uniform bins over [origin, origin+extent), CSR lists of primitive (or instance) indices, plus an ALWAYS list of never-pruned entries. More...

#include <scene_query.hpp>

Public Member Functions

PECLET_HD long binOf (Vec3< Real > p) const
 Flat bin index of a point, or -1 when the point is outside a non-periodic grid's coverage (the caller must fall back to the full scan — exactness before speed).

Public Attributes

int nx = 0
int ny = 0
int nz = 0
Real ox = 0
Real oy = 0
Real oz = 0
Real bx = 1
Real by = 1
Real bz = 1
const int * offsets = nullptr
const int * items = nullptr
const int * always = nullptr
int alwaysCount = 0
bool wrap = false

Detailed Description

template<class Real>
struct peclet::core::geom::CandidateGridView< Real >

Non-owning candidate grid: uniform bins over [origin, origin+extent), CSR lists of primitive (or instance) indices, plus an ALWAYS list of never-pruned entries.

POD, device-copyable.

Definition at line 178 of file scene_query.hpp.

Member Function Documentation

◆ binOf()

template<class Real>
PECLET_HD long peclet::core::geom::CandidateGridView< Real >::binOf ( Vec3< Real > p) const
inline

Flat bin index of a point, or -1 when the point is outside a non-periodic grid's coverage (the caller must fall back to the full scan — exactness before speed).

Definition at line 190 of file scene_query.hpp.

References bx, by, bz, peclet::core::detail::hdFloor(), nx, ny, nz, ox, oy, oz, PECLET_HD, wrap, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.

Referenced by peclet::core::geom::evalSceneGrid(), peclet::core::geom::evalSphereUnionGrid(), peclet::core::geom::sceneEvalOwnerGrid(), and peclet::core::geom::sphereUnionEvalOwnerGrid().

Member Data Documentation

◆ nx

◆ ny

◆ nz

◆ ox

◆ oy

◆ oz

◆ bx

◆ by

◆ bz

◆ offsets

◆ items

◆ always

◆ alwaysCount

◆ wrap


The documentation for this struct was generated from the following file: