|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
CPU storage for a forest (of SDFs). More...
#include <Forest.h>
Public Types | |
| using | ScalarType = TScalar |
| Scalar type. | |
Public Member Functions | |
| void | Serialize (io::Archive &archive) const |
| Serialize the forest to an archive. | |
| void | Deserialize (io::Archive &archive) |
| Deserialize the forest from an archive. | |
Public Attributes | |
| std::vector< Node< ScalarType > > | nodes |
|# nodes| nodes in the forest | |
| std::vector< Transform< ScalarType > > | transforms |
|# nodes| transforms associated to each node | |
| std::vector< int > | roots |
|# roots| indices of the root nodes in the forest | |
| std::vector< std::pair< int, int > > | children |
CPU storage for a forest (of SDFs).
| void pbat::geometry::sdf::Forest< TScalar >::Deserialize | ( | io::Archive & | archive | ) |
Deserialize the forest from an archive.
| archive | Archive to deserialize from |
Primitives
Unary nodes
Binary nodes
| void pbat::geometry::sdf::Forest< TScalar >::Serialize | ( | io::Archive & | archive | ) | const |
Serialize the forest to an archive.
| archive | Archive to serialize to |
Primitives
Unary nodes
Binary nodes
| std::vector<std::pair<int, int> > pbat::geometry::sdf::Forest< TScalar >::children |
|# nodes| list of pairs of children indices for each node, such that c* < 0 if no child