Class ConvexBase
Defined in File geometric_shapes.h
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public hpp::fcl::ShapeBase
(Class ShapeBase)
Derived Types
public boost::serialization::internal::ConvexBaseAccessor
(Struct ConvexBaseAccessor)public hpp::fcl::Convex< PolygonT >
(Template Class Convex)
Class Documentation
-
class ConvexBase : public hpp::fcl::ShapeBase
Base for convex polytope.
Note
Inherited classes are responsible for filling ConvexBase::neighbors;
Subclassed by boost::serialization::internal::ConvexBaseAccessor, hpp::fcl::Convex< PolygonT >
Public Functions
-
virtual ~ConvexBase()
-
inline virtual ConvexBase *clone() const
-
Clone (deep copy).
Public Members
-
unsigned int num_points
Public Static Functions
-
static ConvexBase *convexHull(const Vec3f *points, unsigned int num_points, bool keepTriangles, const char *qhullCommand = NULL)
Build a convex hull based on Qhull library and store the vertices and optionally the triangles.
Note
hpp-fcl must have been compiled with option
HPP_FCL_HAS_QHULL
set toON
.- Parameters:
points, num_points – the points whose convex hull should be computed.
keepTriangles – if
true
, returns a Convex<Triangle> object which contains the triangle of the shape.qhullCommand – the command sent to qhull.
if
keepTriangles
istrue
, this parameter should include “Qt”. IfNULL
, “Qt” is passed to Qhull.if
keepTriangles
isfalse
, an empty string is passed to Qhull.
Protected Functions
-
inline ConvexBase()
Construct an uninitialized convex object Initialization is done with ConvexBase::initialize.
-
void initialize(bool ownStorage, Vec3f *points_, unsigned int num_points_)
Initialize the points of the convex shape This also initializes the ConvexBase::center.
- Parameters:
ownStorage – weither the ConvexBase owns the data.
points_ – list of 3D points ///
num_points_ – number of 3D points
-
void set(bool ownStorage, Vec3f *points_, unsigned int num_points_)
Set the points of the convex shape.
- Parameters:
ownStorage – weither the ConvexBase owns the data.
points_ – list of 3D points ///
num_points_ – number of 3D points
-
ConvexBase(const ConvexBase &other)
Copy constructor Only the list of neighbors is copied.
-
virtual ~ConvexBase()