core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::geom::HollowCylinder Struct Reference

Solid hollow cylinder (a tube wall) of given outer/inner radius and height about axis. More...

#include <sdf.hpp>

Public Member Functions

double eval (const Vec< 3 > &p) const
 

Public Attributes

Vec< 3 > center {}
 
double rOuter = 1.0
 
double rInner = 0.5
 
double height = 1.0
 
int axis = 2
 

Detailed Description

Solid hollow cylinder (a tube wall) of given outer/inner radius and height about axis.

Modelled as the CSG intersection {r<=rOuter} ∩ {r>=rInner} ∩ {|z|<=height/2}; the shell material is the solid (negative). Sign-exact; distance is the standard max-of-halfspaces approximation.

Definition at line 53 of file sdf.hpp.

Member Function Documentation

◆ eval()

double peclet::core::geom::HollowCylinder::eval ( const Vec< 3 > &  p) const
inline

Definition at line 59 of file sdf.hpp.

References axis, center, height, rInner, rOuter, and peclet::core::geom::detail::sub().

Member Data Documentation

◆ center

Vec<3> peclet::core::geom::HollowCylinder::center {}

Definition at line 54 of file sdf.hpp.

Referenced by eval().

◆ rOuter

double peclet::core::geom::HollowCylinder::rOuter = 1.0

Definition at line 55 of file sdf.hpp.

Referenced by eval().

◆ rInner

double peclet::core::geom::HollowCylinder::rInner = 0.5

Definition at line 56 of file sdf.hpp.

Referenced by eval().

◆ height

double peclet::core::geom::HollowCylinder::height = 1.0

Definition at line 57 of file sdf.hpp.

Referenced by eval().

◆ axis

int peclet::core::geom::HollowCylinder::axis = 2

Definition at line 58 of file sdf.hpp.

Referenced by eval().


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