coal
3.0.4
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Toggle main menu visibility
Loading...
Searching...
No Matches
BV_node.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2021 INRIA
3
//
4
5
#ifndef COAL_SERIALIZATION_BV_NODE_H
6
#define COAL_SERIALIZATION_BV_NODE_H
7
8
#include "
coal/BV/BV_node.h
"
9
10
#include "
coal/serialization/fwd.h
"
11
#include "
coal/serialization/OBBRSS.h
"
12
13
namespace
boost
{
14
namespace
serialization
{
15
16
template
<
class
Archive>
17
void
serialize
(Archive& ar,
coal::BVNodeBase
& node,
18
const
unsigned
int
/*version*/
) {
19
ar& make_nvp(
"first_child"
, node.
first_child
);
20
ar& make_nvp(
"first_primitive"
, node.
first_primitive
);
21
ar& make_nvp(
"num_primitives"
, node.
num_primitives
);
22
}
23
24
template
<
class
Archive,
typename
BV>
25
void
serialize
(Archive& ar,
coal::BVNode<BV>
& node,
26
const
unsigned
int
/*version*/
) {
27
ar& make_nvp(
"base"
,
28
boost::serialization::base_object<coal::BVNodeBase>(node));
29
ar& make_nvp(
"bv"
, node.
bv
);
30
}
31
32
}
// namespace serialization
33
}
// namespace boost
34
35
#endif
// ifndef COAL_SERIALIZATION_BV_NODE_H
BV_node.h
fwd.h
coal::BVNode::bv
BV bv
bounding volume storing the geometry
Definition
BV_node.h:110
coal::BVNodeBase::first_primitive
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
coal::BVNodeBase::num_primitives
unsigned int num_primitives
The number of primitives belonging to the current node.
Definition
BV_node.h:64
coal::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:56
boost::serialization
Definition
AABB.h:12
boost::serialization::serialize
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
Definition
AABB.h:15
boost
Definition
AABB.h:11
OBBRSS.h
coal::BVNodeBase
BVNodeBase encodes the tree structure for BVH.
Definition
BV_node.h:51
coal::BVNode
A class describing a bounding volume node. It includes the tree structure providing in BVNodeBase and...
Definition
BV_node.h:106
include
coal
serialization
BV_node.h
Generated by
1.17.0