peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::SdfScene< Real > Struct Template Reference

#include <sdf.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Real eval (Real x, Real y, Real z) const
 
KOKKOS_INLINE_FUNCTION Real gradH () const
 

Public Attributes

Kokkos::View< const peclet::core::geom::ShapeNode< Real > *, peclet::core::MemSpace > nodes
 
Kokkos::View< const peclet::core::geom::GridDesc< Real > *, peclet::core::MemSpace > grids
 
Kokkos::View< const float *, peclet::core::MemSpace > samples
 
int nodeCount = 0
 
int root = 0
 
Real h = Real(1e-4)
 

Detailed Description

template<class Real>
struct peclet::voro::SdfScene< Real >

A whole core shape SCENE as a voro provider: the full shared analytic vocabulary (sphere, box, both hollow-cylinder forms, capsule, torus, cone, ellipsoid, superquadric), CSG union / intersection / difference, per-node conformal transforms, and sampled grids – all reachable from voro's cell clipper and mesh optimiser through the one eval(x,y,z) + gradH() interface they already expect.

This is what lets voro use analytic geometry beyond the three legacy providers above without voro owning any geometry code: the nodes are core's POD ShapeNode records, the evaluation is core's recursion-free evalTree.

Member Function Documentation

◆ eval()

template<class Real >
KOKKOS_INLINE_FUNCTION Real peclet::voro::SdfScene< Real >::eval ( Real  x,
Real  y,
Real  z 
) const
inline

◆ gradH()

template<class Real >
KOKKOS_INLINE_FUNCTION Real peclet::voro::SdfScene< Real >::gradH ( ) const
inline

Member Data Documentation

◆ grids

template<class Real >
Kokkos::View<const peclet::core::geom::GridDesc<Real>*, peclet::core::MemSpace> peclet::voro::SdfScene< Real >::grids

◆ h

template<class Real >
Real peclet::voro::SdfScene< Real >::h = Real(1e-4)

◆ nodeCount

template<class Real >
int peclet::voro::SdfScene< Real >::nodeCount = 0

◆ nodes

template<class Real >
Kokkos::View<const peclet::core::geom::ShapeNode<Real>*, peclet::core::MemSpace> peclet::voro::SdfScene< Real >::nodes

◆ root

template<class Real >
int peclet::voro::SdfScene< Real >::root = 0

◆ samples

template<class Real >
Kokkos::View<const float*, peclet::core::MemSpace> peclet::voro::SdfScene< Real >::samples

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