30 #include "../convexHull.hpp"
36 CHVolume(
const std::vector<Eigen::Vector3f>& points)
39 m_name =
"ConvexHullVolume";
43 CHVolume(
const std::pair<std::string, std::vector<Eigen::Vector3f>>& points)
46 m_name =
"ConvexHullVolume";
69 return std::pow(m_volume - casted->
volume(), 2.0);
77 virtual void serialize(
const ObjectSerializerBasePtr& serializer,
const Ice::Current&)
const
87 featureObj->setDouble(
m_name, m_volume);
91 featureObj = obj->createElement();
92 featureObj->setDouble(
m_name, m_volume);
97 virtual void deserialize(
const ObjectSerializerBasePtr& serializer,
const Ice::Current&)
102 m_volume = featureObj->getDouble(
m_name);
105 virtual std::ostream&
output(std::ostream& out)
const
107 return out << m_volume;