hpp-fcl  3.0.0
HPP fork of FCL -- The Flexible Collision Library
kDOP.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2024 INRIA
3 //
4 
5 #ifndef HPP_FCL_SERIALIZATION_kDOP_H
6 #define HPP_FCL_SERIALIZATION_kDOP_H
7 
8 #include "hpp/fcl/BV/kDOP.h"
9 
11 
12 namespace boost {
13 namespace serialization {
14 
15 namespace internal {
16 template <short N>
19  using Base::dist_;
20 };
21 } // namespace internal
22 
23 template <class Archive, short N>
24 void serialize(Archive& ar, hpp::fcl::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 // HPP_FCL_SERIALIZATION_kDOP_H
KDOP class describes the KDOP collision structures. K is set as the template parameter,...
Definition: kDOP.h:92
Eigen::Array< FCL_REAL, N, 1 > dist_
Origin's distances to N KDOP planes.
Definition: kDOP.h:95
void serialize(Archive &ar, hpp::fcl::AABB &aabb, const unsigned int)
Definition: AABB.h:15
Definition: AABB.h:11
hpp::fcl::KDOP< N > Base
Definition: kDOP.h:18