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