hpp-fcl 1.8.1
HPP fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
BV_node.h
Go to the documentation of this file.
1//
2// Copyright (c) 2021 INRIA
3//
4
5#ifndef HPP_FCL_SERIALIZATION_BV_NODE_H
6#define HPP_FCL_SERIALIZATION_BV_NODE_H
7
9
12
13namespace boost
14{
15 namespace serialization
16 {
17
18 template <class Archive>
19 void serialize(Archive & ar,
21 const unsigned int /*version*/)
22 {
23 ar & make_nvp("first_child",node.first_child);
24 ar & make_nvp("first_primitive",node.first_primitive);
25 ar & make_nvp("num_primitives",node.num_primitives);
26 }
27
28 template <class Archive, typename BV>
29 void serialize(Archive & ar,
31 const unsigned int /*version*/)
32 {
33 ar & make_nvp("base",boost::serialization::base_object<hpp::fcl::BVNodeBase>(node));
34 ar & make_nvp("bv",node.bv);
35 }
36
37 }
38}
39
40#endif // ifndef HPP_FCL_SERIALIZATION_BV_NODE_H
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:63
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:67
BV bv
bounding volume storing the geometry
Definition: BV_node.h:114
unsigned int num_primitives
The number of primitives belonging to the current node.
Definition: BV_node.h:70
void serialize(Archive &ar, hpp::fcl::AABB &aabb, const unsigned int)
Definition: AABB.h:17
Definition: AABB.h:12
BVNodeBase encodes the tree structure for BVH.
Definition: BV_node.h:58
A class describing a bounding volume node. It includes the tree structure providing in BVNodeBase and...
Definition: BV_node.h:110