MRSL DecompUtil Library
0.1
An implementaion of convex decomposition over point cloud
|
basic geometry utils More...
Go to the source code of this file.
Functions | |
template<int Dim> | |
Vecf< Dim > | eigen_value (const Matf< Dim, Dim > &A) |
Calculate eigen values. | |
Mat2f | vec2_to_rotation (const Vec2f &v) |
Calculate rotation matrix from a vector (aligned with x-axis) | |
Mat3f | vec3_to_rotation (const Vec3f &v) |
vec_Vec2f | sort_pts (const vec_Vec2f &pts) |
Sort points on the same plane in the counter-clockwise order. More... | |
bool | line_intersect (const std::pair< Vec2f, Vec2f > &v1, const std::pair< Vec2f, Vec2f > &v2, Vec2f &pi) |
Find intersection between two lines on the same plane, return false if they are not intersected. | |
vec_Vec2f | line_intersects (const vec_E< std::pair< Vec2f, Vec2f >> &lines) |
Find intersection between multiple lines. | |
vec_Vec2f | cal_vertices (const Polyhedron2D &poly) |
vec_E< vec_Vec3f > | cal_vertices (const Polyhedron3D &poly) |
Find extreme points of Polyhedron3D. | |
basic geometry utils