35 int size = points.size();
38 for (
int i = 0; i < size * 3; i += 3)
40 tmpVals[i + 0] = points[i / 3][0];
41 tmpVals[i + 1] = points[i / 3][1];
42 tmpVals[i + 2] = points[i / 3][2];
63 calculateProperties();
66 BBFeature(
const std::pair<std::string, std::vector<Eigen::Vector3f>>& points) :
69 calculateProperties();
gdiam_bbox calculateBB(const std::vector< Eigen::Vector3f > &points)
std::function< R(TaggedPoints)> memoized(R(*fn)(const std::vector< Eigen::Vector3f > &))
virtual double compare(const Feature &) const =0
BBFeature(const std::pair< std::string, std::vector< Eigen::Vector3f > > &points)
BBFeature(const std::vector< Eigen::Vector3f > &points)
gdiam_bbox gdiam_approx_mvbb(gdiam_point *start, int size, gdiam_real eps)
gdiam_point * gdiam_convert(gdiam_real *start, int size)