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
11
12namespace boost {
13namespace serialization {
14
15namespace internal {
16template <short N>
19 using Base::dist_;
20};
21} // namespace internal
22
23template <class Archive, short N>
24void 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 class describes the KDOP collision structures. K is set as the template parameter,...
Definition kDOP.h:91
Eigen::Array< Scalar, N, 1 > dist_
Origin's distances to N KDOP planes.
Definition kDOP.h:94
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
Definition AABB.h:15
Definition AABB.h:11
coal::KDOP< N > Base
Definition kDOP.h:18