MRSL DecompUtil Library
0.1
An implementaion of convex decomposition over point cloud
|
Line Segment Class. More...
#include <decomp_base.h>
Public Member Functions | |
DecompBase () | |
Null constructor. | |
void | set_local_bbox (const Vecf< Dim > &bbox) |
Adding local bounding box around line seg. More... | |
void | set_obs (const vec_Vecf< Dim > &obs) |
Import obstacle points. | |
vec_Vecf< Dim > | get_obs () const |
Get obstacel points. | |
Ellipsoid< Dim > | get_ellipsoid () const |
Get ellipsoid. | |
Polyhedron< Dim > | get_polyhedron () const |
Get polyhedron. | |
virtual void | dilate (decimal_t radius=0)=0 |
Inflate the line segment. More... | |
virtual void | shrink (double shrink_distance) |
Shrink the polyhedron. More... | |
Protected Member Functions | |
virtual void | add_local_bbox (Polyhedron< Dim > &Vs)=0 |
void | find_polyhedron () |
Protected Attributes | |
vec_Vecf< Dim > | obs_ |
Obstacles, input. | |
Ellipsoid< Dim > | ellipsoid_ |
Output ellipsoid. | |
Polyhedron< Dim > | polyhedron_ |
Output polyhedron. | |
Vecf< Dim > | local_bbox_ {Vecf<Dim>::Zero()} |
Local bounding box along the line segment. | |
|
pure virtual |
Inflate the line segment.
radius | the offset added to the long semi-axis |
Implemented in LineSegment< Dim >, and SeedDecomp< Dim >.
|
inline |
Adding local bounding box around line seg.
Dim | Distance in corresponding axis |
This virtual bounding box is parallel to the line segment, the x,y,z axes are not w.r.t the world coordinate system, but instead, x-axis is parallel to the line, y-axis is perpendicular to the line and world z-axis, z-axis is perpendiculat to the line and y-axis
|
inlinevirtual |
Shrink the polyhedron.
shrink_distance | Shrink distance |