31 #include "../convexHull.hpp"
37 CHArea(
const std::vector<Eigen::Vector3f>& points)
44 CHArea(
const std::pair<std::string, std::vector<Eigen::Vector3f>>& points)
66 const CHArea* casted =
dynamic_cast<const CHArea*
>(&other);
70 return std::pow(m_area - casted->
area(), 2.0);
78 virtual void serialize(
const ObjectSerializerBasePtr& serializer,
const Ice::Current&)
const
88 featureObj->setDouble(
m_name, m_area);
92 featureObj = obj->createElement();
93 featureObj->setDouble(
m_name, m_area);
98 virtual void deserialize(
const ObjectSerializerBasePtr& serializer,
const Ice::Current&)
103 m_area = featureObj->getDouble(
m_name);
106 virtual std::ostream&
output(std::ostream& out)
const
108 return out << m_area;