38 #ifndef FCL_SHAPE_CAPSULE_H 39 #define FCL_SHAPE_CAPSULE_H 41 #include "fcl/geometry/shape/shape_base.h" 47 template <
typename S_>
85 #include "fcl/geometry/shape/capsule-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
S lz
Length along z axis.
Definition: capsule.h:61
Base class for all basic geometric shapes.
Definition: shape_base.h:48
S computeVolume() const override
compute the volume
Definition: capsule-inl.h:79
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: capsule-inl.h:99
Center at zero point capsule.
Definition: capsule.h:48
void computeLocalAABB() override
Compute AABB<S>
Definition: capsule-inl.h:60
NODE_TYPE getNodeType() const override
Get node type: a capsule.
Definition: capsule-inl.h:72
Matrix3< S > computeMomentofInertia() const override
compute the inertia matrix, related to the origin
Definition: capsule-inl.h:86
S radius
Radius of capsule.
Definition: capsule.h:58
Capsule(S radius, S lz)
Constructor.
Definition: capsule-inl.h:52