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