Go to the documentation of this file.
5 #ifndef COAL_SERIALIZATION_GEOMETRIC_SHAPES_H
6 #define COAL_SERIALIZATION_GEOMETRIC_SHAPES_H
13 namespace serialization {
15 template <
class Archive>
17 const unsigned int ) {
20 boost::serialization::base_object<coal::CollisionGeometry>(shape_base));
22 ar& make_nvp(
"swept_sphere_radius", radius);
24 if (Archive::is_loading::value) {
29 template <
class Archive>
31 const unsigned int ) {
33 boost::serialization::base_object<coal::ShapeBase>(triangle));
34 ar& make_nvp(
"a", triangle.
a);
35 ar& make_nvp(
"b", triangle.
b);
36 ar& make_nvp(
"c", triangle.
c);
39 template <
class Archive>
41 ar& make_nvp(
"base", boost::serialization::base_object<coal::ShapeBase>(
box));
42 ar& make_nvp(
"halfSide",
box.halfSide);
45 template <
class Archive>
47 const unsigned int ) {
49 boost::serialization::base_object<coal::ShapeBase>(
sphere));
50 ar& make_nvp(
"radius",
sphere.radius);
53 template <
class Archive>
55 const unsigned int ) {
57 boost::serialization::base_object<coal::ShapeBase>(ellipsoid));
58 ar& make_nvp(
"radii", ellipsoid.
radii);
61 template <
class Archive>
63 const unsigned int ) {
65 boost::serialization::base_object<coal::ShapeBase>(capsule));
66 ar& make_nvp(
"radius", capsule.
radius);
67 ar& make_nvp(
"halfLength", capsule.
halfLength);
70 template <
class Archive>
73 boost::serialization::base_object<coal::ShapeBase>(cone));
74 ar& make_nvp(
"radius", cone.
radius);
78 template <
class Archive>
80 const unsigned int ) {
82 boost::serialization::base_object<coal::ShapeBase>(cylinder));
83 ar& make_nvp(
"radius", cylinder.
radius);
84 ar& make_nvp(
"halfLength", cylinder.
halfLength);
87 template <
class Archive>
89 const unsigned int ) {
91 boost::serialization::base_object<coal::ShapeBase>(half_space));
92 ar& make_nvp(
"n", half_space.
n);
93 ar& make_nvp(
"d", half_space.
d);
96 template <
class Archive>
98 const unsigned int ) {
100 boost::serialization::base_object<coal::ShapeBase>(plane));
101 ar& make_nvp(
"n", plane.
n);
102 ar& make_nvp(
"d", plane.
d);
120 #endif // ifndef COAL_SERIALIZATION_GEOMETRIC_SHAPES_H
CoalScalar halfLength
Half Length along z axis.
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
CoalScalar halfLength
Half Length along z axis.
Half Space: this is equivalent to the Plane in ODE. A Half space has a priviledged direction: the dir...
Capsule It is where is the distance between the point x and the capsule segment AB,...
CoalScalar radius
Radius of the cylinder.
Ellipsoid centered at point zero.
#define COAL_SERIALIZATION_DECLARE_EXPORT(T)
The geometry for the object for collision or distance computation.
Vec3s radii
Radii of the Ellipsoid (such that on boundary: x^2/rx^2 + y^2/ry^2.
Infinite plane. A plane can be viewed as two half spaces; it has no priviledged direction....
Center at zero point, axis aligned box.
Center at zero point sphere.
CoalScalar halfLength
Half Length along z axis.
Base class for all basic geometric shapes.
Cylinder along Z axis. The cylinder is defined at its centroid.
Triangle stores the points instead of only indices of points.
CoalScalar getSweptSphereRadius() const
Get radius of sphere swept around the shape. This radius is always >= 0.
Cone The base of the cone is at and the top is at .
CoalScalar radius
Radius of the cone.
CoalScalar d
Plane offset.
void setSweptSphereRadius(CoalScalar radius)
Set radius of sphere swept around the shape. Must be >= 0.
CoalScalar radius
Radius of capsule.
CoalScalar d
Plane offset.
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58