core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
sdf.hpp File Reference
#include <algorithm>
#include <cmath>
#include "peclet/core/common/types.hpp"

Go to the source code of this file.

Classes

struct  peclet::core::geom::Sphere
 Solid ball: negative inside. More...
 
struct  peclet::core::geom::Box
 Axis-aligned solid box of half-extents half: standard exact box SDF, negative inside. More...
 
struct  peclet::core::geom::HollowCylinder
 Solid hollow cylinder (a tube wall) of given outer/inner radius and height about axis. More...
 
struct  peclet::core::geom::Complement< S >
 Negation: the solid and the void swap (sdf -> -sdf). More...
 

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::geom
 
namespace  peclet::core::geom::detail
 

Functions

Vec< 3 > peclet::core::geom::detail::sub (const Vec< 3 > &a, const Vec< 3 > &b)
 
double peclet::core::geom::detail::norm (const Vec< 3 > &a)
 
template<typename S >
Vec< 3 > peclet::core::geom::gradient (const S &shape, const Vec< 3 > &p, double h=1e-4)
 Generic outward normal via central differences; works for any shape with eval().