|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Box frame with half extents \( \text{he} \in \mathbb{R}^3 \) and thickness \( t \). More...
#include <Primitive.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| BoxFrame ()=default | |
| Default constructor. | |
| BoxFrame (Vec3< ScalarType > const &he_, ScalarType t_) | |
| Construct a new Box Frame object. | |
| PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > p) const |
| Evaluate the signed distance function at a point. | |
Public Attributes | |
| Vec3< ScalarType > | he |
| Half extents of the box frame along each axis. | |
| ScalarType | t {TScalar(0.1)} |
| Thickness of the box frame. | |
Box frame with half extents \( \text{he} \in \mathbb{R}^3 \) and thickness \( t \).
| TScalar | Scalar type |
|
inlineexplicit |
Construct a new Box Frame object.
| he_ | Half extents of the box frame along each axis |
| t_ | Thickness of the box frame |
|
inline |
Evaluate the signed distance function at a point.
| p | Point in 3D space |
| Vec3<ScalarType> pbat::geometry::sdf::BoxFrame< TScalar >::he |
Half extents of the box frame along each axis.