Go to the documentation of this file.
38 #ifndef COAL_SHAPE_CONVEX_H
39 #define COAL_SHAPE_CONVEX_H
48 template <
typename PolygonT>
49 class Convex :
public ConvexBase {
63 Convex(std::shared_ptr<std::vector<Vec3s>> points_,
unsigned int num_points_,
64 std::shared_ptr<std::vector<PolygonT>> polygons_,
65 unsigned int num_polygons_);
91 void set(std::shared_ptr<std::vector<Vec3s>> points,
unsigned int num_points,
92 std::shared_ptr<std::vector<PolygonT>>
polygons,
110 #include "coal/shape/details/convex.hxx"
unsigned int num_polygons
Eigen::Matrix< CoalScalar, 3, 1 > Vec3s
virtual Convex< PolygonT > * clone() const
Clone (deep copy)
Convex()
Construct an uninitialized convex object.
void set(std::shared_ptr< std::vector< Vec3s >> 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.
CoalScalar computeVolume() const
Eigen::Matrix< CoalScalar, 3, 3 > Matrix3s
Matrix3s computeMomentofInertia() const
based on http://number-none.com/blow/inertia/bb_inertia.doc
std::shared_ptr< std::vector< PolygonT > > polygons
An array of PolygonT object. PolygonT should contains a list of vertices for each polygon,...
Base for convex polytope.
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:57