|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Rounded cylinder shape with height \( h \), radius \( \text{ra} \) and rounding radius \( \text{rb} \). More...
#include <Primitive.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| RoundedCylinder ()=default | |
| Default constructor. | |
| RoundedCylinder (ScalarType h_, ScalarType ra_, ScalarType rb_) | |
| Construct a new Rounded Cylinder object. | |
| PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p) const |
| Evaluate the signed distance function at a point. | |
Public Attributes | |
| ScalarType | h {TScalar(1)} |
| Height of the rounded cylinder. | |
| ScalarType | ra {TScalar(0.2)} |
| Radius of the rounded cylinder. | |
| ScalarType | rb {TScalar(0.05)} |
| Rounding radius at edges. | |
Rounded cylinder shape with height \( h \), radius \( \text{ra} \) and rounding radius \( \text{rb} \).
| TScalar | Scalar type |
|
inlineexplicit |
Construct a new Rounded Cylinder object.
| h_ | Height of the rounded cylinder |
| ra_ | Radius of the rounded cylinder |
| rb_ | Rounding radius at edges |
|
inline |
Evaluate the signed distance function at a point.
| p | Point in 3D space |