5#ifndef COAL_SERIALIZATION_BV_NODE_H
6#define COAL_SERIALIZATION_BV_NODE_H
14namespace serialization {
16template <
class Archive>
18 const unsigned int ) {
24template <
class Archive,
typename BV>
26 const unsigned int ) {
28 boost::serialization::base_object<coal::BVNodeBase>(node));
29 ar& make_nvp(
"bv", node.
bv);
BV bv
bounding volume storing the geometry
Definition BV_node.h:110
unsigned int first_primitive
The start id the primitive belonging to the current node. The index is referred to the primitive_indi...
Definition BV_node.h:61
unsigned int num_primitives
The number of primitives belonging to the current node.
Definition BV_node.h:64
int first_child
An index for first child node or primitive If the value is positive, it is the index of the first chi...
Definition BV_node.h:56
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
Definition AABB.h:15
BVNodeBase encodes the tree structure for BVH.
Definition BV_node.h:51
A class describing a bounding volume node. It includes the tree structure providing in BVNodeBase and...
Definition BV_node.h:106