.. _program_listing_file__tmp_ws_src_hpp-fcl_include_hpp_fcl_serialization_geometric_shapes.h: Program Listing for File geometric_shapes.h =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/hpp-fcl/include/hpp/fcl/serialization/geometric_shapes.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // // Copyright (c) 2021 INRIA // #ifndef HPP_FCL_SERIALIZATION_GEOMETRIC_SHAPES_H #define HPP_FCL_SERIALIZATION_GEOMETRIC_SHAPES_H #include "hpp/fcl/shape/geometric_shapes.h" #include "hpp/fcl/serialization/fwd.h" namespace boost { namespace serialization { template void serialize(Archive& ar, hpp::fcl::ShapeBase& shape_base, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object( shape_base)); } template void serialize(Archive& ar, hpp::fcl::TriangleP& triangle, const unsigned int /*version*/) { ar& make_nvp( "base", boost::serialization::base_object(triangle)); ar& make_nvp("a", triangle.a); ar& make_nvp("b", triangle.b); ar& make_nvp("c", triangle.c); } template void serialize(Archive& ar, hpp::fcl::Box& box, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object(box)); ar& make_nvp("halfSide", box.halfSide); } template void serialize(Archive& ar, hpp::fcl::Sphere& sphere, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object(sphere)); ar& make_nvp("radius", sphere.radius); } template void serialize(Archive& ar, hpp::fcl::Ellipsoid& ellipsoid, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object( ellipsoid)); ar& make_nvp("radii", ellipsoid.radii); } template void serialize(Archive& ar, hpp::fcl::Capsule& capsule, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object(capsule)); ar& make_nvp("radius", capsule.radius); ar& make_nvp("halfLength", capsule.halfLength); } template void serialize(Archive& ar, hpp::fcl::Cone& cone, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object(cone)); ar& make_nvp("radius", cone.radius); ar& make_nvp("halfLength", cone.halfLength); } template void serialize(Archive& ar, hpp::fcl::Cylinder& cylinder, const unsigned int /*version*/) { ar& make_nvp( "base", boost::serialization::base_object(cylinder)); ar& make_nvp("radius", cylinder.radius); ar& make_nvp("halfLength", cylinder.halfLength); } template void serialize(Archive& ar, hpp::fcl::Halfspace& half_space, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object( half_space)); ar& make_nvp("n", half_space.n); ar& make_nvp("d", half_space.d); } template void serialize(Archive& ar, hpp::fcl::Plane& plane, const unsigned int /*version*/) { ar& make_nvp("base", boost::serialization::base_object(plane)); ar& make_nvp("n", plane.n); ar& make_nvp("d", plane.d); } } // namespace serialization } // namespace boost #endif // ifndef HPP_FCL_SERIALIZATION_GEOMETRIC_SHAPES_H