PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Smooth difference operation. More...
#include <BinaryNode.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
SmoothDifference ()=default | |
Default constructor. | |
SmoothDifference (ScalarType k_) | |
Construct a new Smooth Difference object. | |
PBAT_HOST_DEVICE ScalarType | Eval (ScalarType sd1, ScalarType sd2) const |
Evaluate the signed distance function of the smooth difference of two shapes. | |
Public Attributes | |
ScalarType | k {TScalar(0.25)} |
Smoothness factor. | |
Smooth difference operation.
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Smooth Difference object.
k_ | Smoothness factor |
|
inline |
Evaluate the signed distance function of the smooth difference of two shapes.
sd1 | Signed distance to the first shape |
sd2 | Signed distance to the second shape |