|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Vertical capped cylinder shape with height \( h \) and radius \( r \). More...
#include <Primitive.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| VerticalCappedCylinder ()=default | |
| Default constructor. | |
| VerticalCappedCylinder (ScalarType h_, ScalarType r_) | |
| Construct a new Vertical Capped 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 capped cylinder. | |
| ScalarType | r {TScalar(0.2)} |
| Radius of the capped cylinder. | |
Vertical capped cylinder shape with height \( h \) and radius \( r \).
| TScalar | Scalar type |
|
inlineexplicit |
Construct a new Vertical Capped Cylinder object.
| h_ | Height of the capped cylinder |
| r_ | Radius of the capped cylinder |
|
inline |
Evaluate the signed distance function at a point.
| p | Point in 3D space |