coal
3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
kDOP.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2024 INRIA
3
//
4
5
#ifndef COAL_SERIALIZATION_kDOP_H
6
#define COAL_SERIALIZATION_kDOP_H
7
8
#include "
coal/BV/kDOP.h
"
9
10
#include "
coal/serialization/fwd.h
"
11
12
namespace
boost
{
13
namespace
serialization {
14
15
namespace
internal {
16
template
<
short
N>
17
struct
KDOPAccessor
:
coal::KDOP
<N> {
18
typedef
coal::KDOP<N>
Base
;
19
using
Base::dist_
;
20
};
21
}
// namespace internal
22
23
template
<
class
Archive,
short
N>
24
void
serialize
(Archive& ar,
coal::KDOP<N>
& bv_,
25
const
unsigned
int
/*version*/
) {
26
typedef
internal::KDOPAccessor<N>
Accessor;
27
Accessor& access =
reinterpret_cast<
Accessor&
>
(bv_);
28
ar& make_nvp(
"distances"
, make_array(access.dist_.data(), N));
29
}
30
31
}
// namespace serialization
32
}
// namespace boost
33
34
#endif
// COAL_SERIALIZATION_kDOP_H
kDOP.h
coal::KDOP
KDOP class describes the KDOP collision structures. K is set as the template parameter,...
Definition
kDOP.h:91
coal::KDOP::dist_
Eigen::Array< Scalar, N, 1 > dist_
Origin's distances to N KDOP planes.
Definition
kDOP.h:94
fwd.h
boost::serialization::serialize
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
Definition
AABB.h:15
boost
Definition
AABB.h:11
boost::serialization::internal::KDOPAccessor
Definition
kDOP.h:17
boost::serialization::internal::KDOPAccessor::Base
coal::KDOP< N > Base
Definition
kDOP.h:18
include
coal
serialization
kDOP.h
Generated by
1.9.8