Go to the documentation of this file.
44 template <
typename ShapeType,
48 size_t num_sampled_supports = 6,
50 const ShapeType* shape_ =
static_cast<const ShapeType*
>(shape);
51 getShapeSupportSet<_SupportOptions>(shape_, support_set, hint, support_data,
52 num_sampled_supports, tol);
68 return details::getShapeSupportSetTpl<TriangleP, Options::NoSweptSphere>;
70 const size_t num_corners_box = 8;
71 support_data.
polygon.reserve(num_corners_box);
72 return details::getShapeSupportSetTpl<Box, Options::NoSweptSphere>;
75 return details::getShapeSupportSetTpl<Sphere, Options::NoSweptSphere>;
77 return details::getShapeSupportSetTpl<Ellipsoid, Options::NoSweptSphere>;
79 return details::getShapeSupportSetTpl<Capsule, Options::NoSweptSphere>;
81 return details::getShapeSupportSetTpl<Cone, Options::NoSweptSphere>;
83 return details::getShapeSupportSetTpl<Cylinder, Options::NoSweptSphere>;
virtual NODE_TYPE getNodeType() const
get the node type
void getShapeSupportSetTpl(const ShapeBase *shape, SupportSet &support_set, int &hint, ShapeSupportData &support_data, size_t num_sampled_supports=6, CoalScalar tol=1e-3)
Templated shape support set functions.
Stores temporary data for the computation of support points.
std::vector< int8_t > visited
Base class for all basic geometric shapes.
#define COAL_THROW_PRETTY(message, exception)
SupportSet::Polygon polygon
Cast a ConvexBase to a LargeConvex to use the log version of getShapeSupport. This is much faster tha...
SupportOptions
Options for the computation of support points. NoSweptSphere option is used when the support function...
static constexpr size_t num_vertices_large_convex_threshold
Above this threshold, the convex polytope is considered large. This influcences the way the support f...
Base for convex polytope.
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:57