hpp-fcl: include/hpp/fcl/serialization/BV_node.h Source File

hpp-fcl 1.7.0 HPP fork of FCL -- The Flexible Collision Library

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
8 #include "hpp/fcl/BV/BV_node.h"
9
10 #include "hpp/fcl/serialization/fwd.h"
11 #include "hpp/fcl/serialization/OBBRSS.h"
12
13 namespace boost
14 {
15 namespace serialization
16 {
17
18 template <class Archive>
19 void serialize(Archive & ar,
20 hpp::fcl::BVNodeBase & node,
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,
30 hpp::fcl::BVNode<BV> & node,
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
BV_node.h
fwd.h
hpp::fcl::BVNodeBase::first_child
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
hpp::fcl::BVNode::bv
BV bv
bounding volume storing the geometry
Definition: BV_node.h:114
hpp::fcl::BVNodeBase::num_primitives
int num_primitives
The number of primitives belonging to the current node.
Definition: BV_node.h:70
hpp::fcl::BVNodeBase::first_primitive
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
boost::serialization::serialize
void serialize(Archive &ar, hpp::fcl::AABB &aabb, const unsigned int)
Definition: AABB.h:17
boost
Definition: AABB.h:12
OBBRSS.h
hpp::fcl::BVNodeBase
BVNodeBase encodes the tree structure for BVH.
Definition: BV_node.h:58
hpp::fcl::BVNode
A class describing a bounding volume node. It includes the tree structure providing in BVNodeBase and...
Definition: BV_node.h:110