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::prim::Complement< Shape > Struct Template Reference

Negation: solid and void swap. Composes with any leaf (a container is the complement of a body). More...

#include <primitives.hpp>

Public Member Functions

template<class Real>
PECLET_HD Real eval (Vec3< Real > p) const
template<class Real>
PECLET_HD Vec3< Real > grad (Vec3< Real > p) const

Public Attributes

Shape shape

Static Public Attributes

static constexpr bool exact_distance = Shape::exact_distance
static constexpr bool analytic_gradient = Shape::analytic_gradient

Detailed Description

template<class Shape>
struct peclet::core::geom::prim::Complement< Shape >

Negation: solid and void swap. Composes with any leaf (a container is the complement of a body).

Definition at line 424 of file primitives.hpp.

Member Function Documentation

◆ eval()

template<class Shape>
template<class Real>
PECLET_HD Real peclet::core::geom::prim::Complement< Shape >::eval ( Vec3< Real > p) const
inline

Definition at line 430 of file primitives.hpp.

References PECLET_HD, and shape.

◆ grad()

template<class Shape>
template<class Real>
PECLET_HD Vec3< Real > peclet::core::geom::prim::Complement< Shape >::grad ( Vec3< Real > p) const
inline

Member Data Documentation

◆ shape

template<class Shape>
Shape peclet::core::geom::prim::Complement< Shape >::shape

Definition at line 425 of file primitives.hpp.

Referenced by eval(), and grad().

◆ exact_distance

template<class Shape>
bool peclet::core::geom::prim::Complement< Shape >::exact_distance = Shape::exact_distance
staticconstexpr

Definition at line 426 of file primitives.hpp.

◆ analytic_gradient

template<class Shape>
bool peclet::core::geom::prim::Complement< Shape >::analytic_gradient = Shape::analytic_gradient
staticconstexpr

Definition at line 427 of file primitives.hpp.


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