20 #ifndef KJB_G_CPP_WRAP_HULL_H
21 #define KJB_G_CPP_WRAP_HULL_H
41 Matrix& hull_vertices,
42 std::vector<Matrix>& hull_facets
51 const std::vector<Matrix>& pts,
52 Matrix& hull_vertices,
53 std::vector<Matrix>& hull_facets
62 using namespace kjb_c;
65 kjb_c::Vector* ave_hull = NULL;
67 EPETE(get_hull_CM_and_volume(hp, &ave_hull, &volume));
69 free_vector(ave_hull);
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
bool intersect_hulls(const std::vector< Matrix > &pts, Matrix &hull_vertices, std::vector< Matrix > &hull_facets)
Compute the intersections of the vector of points.
Definition: g_hull.cpp:58
double get_convex_hull_volume(const kjb::Matrix &points)
Get the volume of the convex hull of points.
Definition: g_hull.h:60
const Impl_type * get_c_matrix() const
Get const pointer to the underlying kjb_c::Matrix C struct.
Definition: m_matrix.h:601
int get_convex_hull(const kjb::Matrix &points, Matrix &hull_vertices, std::vector< Matrix > &hull_facets)
Get the convex hull of points hull_vertices stores the vertices of the convex hull hull_facets stores...
Definition: g_hull.cpp:29
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
struct memorypool points
Definition: triangle.c:637