PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
pbat::geometry::sdf::Forest< TScalar > Struct Template Reference

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
 

Detailed Description

template<common::CArithmetic TScalar>
struct pbat::geometry::sdf::Forest< TScalar >

CPU storage for a forest (of SDFs).

Member Function Documentation

◆ Deserialize()

template<common::CArithmetic TScalar>
void pbat::geometry::sdf::Forest< TScalar >::Deserialize ( io::Archive & archive)

Deserialize the forest from an archive.

Parameters
archiveArchive to deserialize from

Primitives

Unary nodes

Binary nodes

◆ Serialize()

template<common::CArithmetic TScalar>
void pbat::geometry::sdf::Forest< TScalar >::Serialize ( io::Archive & archive) const

Serialize the forest to an archive.

Parameters
archiveArchive to serialize to

Primitives

Unary nodes

Binary nodes

Member Data Documentation

◆ children

template<common::CArithmetic TScalar>
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


The documentation for this struct was generated from the following file: