peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::SdfSphere< 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

Real cx = 0
 
Real cy = 0
 
Real cz = 0
 
Real radius = 1
 

Detailed Description

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

Solid ball (negative inside). DELEGATES to peclet::core::geom::prim::Sphere – the shared leaf is the single source of the formula (Layer 0 rung 4, suite/docs/ANALYTIC_SDF_GEOMETRY.md); this struct keeps voro's provider shape (a centre + the (x,y,z) scalar signature the clipper calls).

Member Function Documentation

◆ eval()

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

◆ gradH()

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

Member Data Documentation

◆ cx

template<class Real >
Real peclet::voro::SdfSphere< Real >::cx = 0

◆ cy

template<class Real >
Real peclet::voro::SdfSphere< Real >::cy = 0

◆ cz

template<class Real >
Real peclet::voro::SdfSphere< Real >::cz = 0

◆ radius

template<class Real >
Real peclet::voro::SdfSphere< Real >::radius = 1

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