MRSL DecompUtil Library
0.1
An implementaion of convex decomposition over point cloud
|
Public Member Functions | |
Ellipsoid (const Matf< Dim, Dim > &C, const Vecf< Dim > &d) | |
decimal_t | dist (const Vecf< Dim > &pt) const |
Calculate distance to the center. | |
bool | inside (const Vecf< Dim > &pt) const |
Check if the point is inside, non-exclusive. | |
vec_Vecf< Dim > | points_inside (const vec_Vecf< Dim > &O) const |
Calculate points inside ellipsoid, non-exclusive. | |
Vecf< Dim > | closest_point (const vec_Vecf< Dim > &O) const |
Find the closest point. | |
Hyperplane< Dim > | closest_hyperplane (const vec_Vecf< Dim > &O) const |
Find the closest hyperplane from the closest point. | |
template<int U = Dim> | |
std::enable_if< U==2, vec_Vecf< U > >::type | sample (int num) const |
Sample n points along the contour. | |
void | print () const |
decimal_t | volume () const |
Get ellipsoid volume. | |
Matf< Dim, Dim > | C () const |
Get C matrix. | |
Vecf< Dim > | d () const |
Get center. | |
Public Attributes | |
Matf< Dim, Dim > | C_ |
Vecf< Dim > | d_ |