|
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 round cone shape with height \( h \), radii \( \text{r}^1, \text{r}^2 \) at endpoints. More...
#include <Primitive.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| VerticalRoundCone ()=default | |
| Default constructor. | |
| VerticalRoundCone (ScalarType h_, ScalarType r1_, ScalarType r2_) | |
| Construct a new Vertical Round 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 round cone. | |
| ScalarType | r1 {TScalar(0.2)} |
| Radius at the bottom of the round cone. | |
| ScalarType | r2 {TScalar(0.4)} |
| Radius at the top of the round cone. | |
Vertical round cone shape with height \( h \), radii \( \text{r}^1, \text{r}^2 \) at endpoints.
| TScalar | Scalar type |
|
inlineexplicit |
|
inline |
Evaluate the signed distance function at a point.
| p | Point in 3D space |