38 #ifndef FCL_SHAPE_CONVEX_H 39 #define FCL_SHAPE_CONVEX_H 41 #include "fcl/geometry/shape/shape_base.h" 47 template <
typename S_>
55 Convex(Vector3<S>* plane_normals,
74 Vector3<S>* plane_normals;
120 #include "fcl/geometry/shape/convex-inl.h" NODE_TYPE
traversal node type: bounding volume (AABB, OBB, RSS, kIOS, OBBRSS, KDOP16, KDOP18, kDOP24), basic shape (box, sphere, ellipsoid, capsule, cone, cylinder, convex, plane, halfspace, triangle), and octree
Definition: collision_geometry.h:54
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
Base class for all basic geometric shapes.
Definition: shape_base.h:48
void computeLocalAABB() override
Compute AABB<S>
Definition: convex-inl.h:99
Vector3< S > center
center of the convex polytope, this is used for collision: center is guaranteed in the internal of th...
Definition: convex.h:94
Matrix3< S > computeMomentofInertia() const override
based on http://number-none.com/blow/inertia/bb_inertia.doc
Definition: convex-inl.h:119
void fillEdges()
Get edge information.
Definition: convex-inl.h:243
Vector3< S > computeCOM() const override
compute center of mass
Definition: convex-inl.h:171
std::vector< Vector3< S > > getBoundVertices(const Transform3< S > &tf) const
get the vertices of some convex shape which can bound this shape in a specific configuration ...
Definition: convex-inl.h:301
Convex(Vector3< S > *plane_normals, S *plane_dis, int num_planes, Vector3< S > *points, int num_points, int *polygons)
Constructing a convex, providing normal and offset of each polytype surface, and the points and shape...
Definition: convex-inl.h:52
S computeVolume() const override
compute the volume
Definition: convex-inl.h:208
Convex polytope.
Definition: convex.h:48
int * polygons
An array of indices to the points of each polygon, it should be the number of vertices followed by th...
Definition: convex.h:79
NODE_TYPE getNodeType() const override
Get node type: a conex polytope.
Definition: convex-inl.h:112