|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Cut hollow sphere shape with radius \( r \), cut height \( h \) and thickness \( t \). More...
#include <Primitive.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| CutHollowSphere ()=default | |
| Default constructor. | |
| CutHollowSphere (ScalarType r_, ScalarType h_, ScalarType t_) | |
| Construct a new Cut Hollow Sphere object. | |
| PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p) const |
| Evaluate the signed distance function at a point. | |
Public Attributes | |
| ScalarType | r {TScalar(1)} |
| Radius of the hollow sphere. | |
| ScalarType | h {TScalar(0.5)} |
| Cut height. | |
| ScalarType | t {TScalar(0.1)} |
| Thickness of the hollow sphere. | |
Cut hollow sphere shape with radius \( r \), cut height \( h \) and thickness \( t \).
| TScalar | Scalar type |
|
inlineexplicit |
Construct a new Cut Hollow Sphere object.
| r_ | Radius of the hollow sphere |
| h_ | Cut height |
| t_ | Thickness of the hollow sphere |
|
inline |
Evaluate the signed distance function at a point.
| p | Point in 3D space |