|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Wave-like bumpiness operation along the axes. More...
#include <UnaryNode.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| Bump ()=default | |
| Default constructor. | |
| Bump (Vec3< ScalarType > const &f_, Vec3< ScalarType > const &g_) | |
| Construct a new Bump 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 | |
| Vec3< ScalarType > | f {TScalar(1), TScalar(1), TScalar(1)} |
| Frequency along each axis. | |
| Vec3< ScalarType > | g {TScalar(1), TScalar(1), TScalar(1)} |
| Amplitude of the wave displacement. | |
Wave-like bumpiness operation along the axes.
| TScalar | Scalar type |
|
inlineexplicit |
Construct a new Bump object.
| f_ | Frequency along each axis |
| g_ | Amplitude of the wave displacement |
|
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 |