5 #ifndef COAL_SERIALIZATION_kIOS_H
6 #define COAL_SERIALIZATION_kIOS_H
14 namespace serialization {
16 template <
class Archive>
21 template <
class Archive>
26 std::array<coal::Vec3s, coal::kIOS::max_num_spheres> centers{};
27 std::array<coal::CoalScalar, coal::kIOS::max_num_spheres> radii;
32 ar& make_nvp(
"centers", make_array(centers.data(), centers.size()));
33 ar& make_nvp(
"radii", make_array(radii.data(), radii.size()));
35 ar& make_nvp(
"obb", bv.
obb);
38 template <
class Archive>
42 std::array<coal::Vec3s, coal::kIOS::max_num_spheres> centers;
43 std::array<coal::CoalScalar, coal::kIOS::max_num_spheres> radii;
44 ar >> make_nvp(
"centers", make_array(centers.data(), centers.size()));
45 ar >> make_nvp(
"radii", make_array(radii.data(), radii.size()));
51 ar >> make_nvp(
"obb", bv.
obb);
57 #endif // COAL_SERIALIZATION_kIOS_H