Skip to content
Snippets Groups Projects
Verified Commit 7052a6fb authored by Justin Carpentier's avatar Justin Carpentier
Browse files

serialization: support quadrilateral

parent 36ec86a3
No related branches found
No related tags found
No related merge requests found
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2014-2020 CNRS-LAAS, INRIA
# Copyright (c) 2014-2022 CNRS-LAAS, INRIA
# Author: Florent Lamiraux, Joseph Mirabel
# All rights reserved.
#
......@@ -256,6 +256,7 @@ SET(${PROJECT_NAME}_HEADERS
include/hpp/fcl/serialization/RSS.h
include/hpp/fcl/serialization/OBBRSS.h
include/hpp/fcl/serialization/hfield.h
include/hpp/fcl/serialization/quadrilateral.h
include/hpp/fcl/serialization/triangle.h
include/hpp/fcl/timings.h
)
......
//
// Copyright (c) 2022 INRIA
//
#ifndef HPP_FCL_SERIALIZATION_QUADRILATERAL_H
#define HPP_FCL_SERIALIZATION_QUADRILATERAL_H
#include "hpp/fcl/data_types.h"
#include "hpp/fcl/serialization/fwd.h"
namespace boost {
namespace serialization {
template <class Archive>
void serialize(Archive &ar, hpp::fcl::Quadrilateral &quadrilateral,
const unsigned int /*version*/) {
ar &make_nvp("p0", quadrilateral[0]);
ar &make_nvp("p1", quadrilateral[1]);
ar &make_nvp("p2", quadrilateral[2]);
ar &make_nvp("p3", quadrilateral[3]);
}
} // namespace serialization
} // namespace boost
#endif // ifndef HPP_FCL_SERIALIZATION_QUADRILATERAL_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment