PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Grid-like repetition operation along the axes. More...
#include <UnaryNode.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
Repeat ()=default | |
Default constructor. | |
Repeat (ScalarType s_, Vec3< ScalarType > const &l_) | |
Construct a new Repeat object. | |
template<class FSdf> | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p, FSdf &&sdf) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
ScalarType | s {TScalar(1)} |
Uniform repetition spacing. | |
Vec3< ScalarType > | l |
Half number of repetitions along each axis. | |
Grid-like repetition operation along the axes.
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Repeat object.
s_ | Uniform repetition spacing |
l_ | Half number of repetitions along each axis |
|
inline |
Evaluate the signed distance function at a point.
FSdf | Callable type with signature ScalarType(Vec3<ScalarType> const&) |
p | 3 x 1 query point in 3D space |
sdf | Input SDF |
Vec3<ScalarType> pbat::geometry::sdf::Repeat< TScalar >::l |
Half number of repetitions along each axis.