38 #ifndef HPP_FCL_SHAPE_CONVEX_H
39 #define HPP_FCL_SHAPE_CONVEX_H
49 template <
typename PolygonT>
64 Convex(std::shared_ptr<std::vector<Vec3f>> points_,
unsigned int num_points_,
65 std::shared_ptr<std::vector<PolygonT>> polygons_,
66 unsigned int num_polygons_);
93 std::shared_ptr<std::vector<PolygonT>>
polygons,
Base for convex polytope.
Definition: geometric_shapes.h:638
Convex polytope.
Definition: convex.h:50
virtual Convex< PolygonT > * clone() const
Clone (deep copy)
Definition: convex.hxx:85
Convex()
Construct an uninitialized convex object.
Definition: convex.h:53
~Convex()
Definition: convex.hxx:68
std::shared_ptr< std::vector< PolygonT > > polygons
An array of PolygonT object. PolygonT should contains a list of vertices for each polygon,...
Definition: convex.h:102
unsigned int num_polygons
Definition: convex.h:103
void set(std::shared_ptr< std::vector< Vec3f >> points, unsigned int num_points, std::shared_ptr< std::vector< PolygonT >> polygons, unsigned int num_polygons)
Set the current Convex from a list of points and polygons.
Definition: convex.hxx:71
Vec3f computeCOM() const
compute center of mass
Definition: convex.hxx:143
FCL_REAL computeVolume() const
compute the volume
Definition: convex.hxx:188
void fillNeighbors()
Definition: convex.hxx:232
Matrix3f computeMomentofInertia() const
based on http://number-none.com/blow/inertia/bb_inertia.doc
Definition: convex.hxx:90
unsigned int num_points
Definition: geometric_shapes.h:713
std::shared_ptr< std::vector< Vec3f > > points
An array of the points of the polygon.
Definition: geometric_shapes.h:712
Eigen::Matrix< FCL_REAL, 3, 3 > Matrix3f
Definition: data_types.h:71
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
Definition: data_types.h:67
double FCL_REAL
Definition: data_types.h:66
Main namespace.
Definition: broadphase_bruteforce.h:44