Go to the documentation of this file.
44 unsigned int num_points_) {
48 "The number of points is not consistent with the size of the "
58 unsigned int num_points_) {
64 num_points(other.num_points),
65 num_normals_and_offsets(other.num_normals_and_offsets),
66 center(other.center) {
82 std::vector<Neighbors>& neighbors_ = *
neighbors;
83 const std::vector<Neighbors>& other_neighbors_ = *(other.
neighbors);
84 for (
size_t i = 0; i <
neighbors->size(); ++i) {
86 n.
count_ = other_neighbors_[i].count_;
114 const std::vector<Vec3s>& points_ = *
points;
void computeLocalAABB()
Compute AABB.
std::shared_ptr< std::vector< Neighbors > > neighbors
Neighbors of each vertex. It is an array of size num_points. For each vertex, it contains the number ...
#define COAL_ASSERT(check, message, exception)
void computeLocalAABB()
Compute AABB.
void computeLocalAABB()
Compute AABB.
ConvexBase()
Construct an uninitialized convex object Initialization is done with ConvexBase::initialize.
void computeLocalAABB()
Compute AABB.
void unitNormalTest()
Turn non-unit normal into unit.
void computeLocalAABB()
Compute AABB.
void computeLocalAABB()
Compute AABB.
std::shared_ptr< std::vector< Vec3s > > normals
An array of the normals of the polygon.
Vec3s max_
The max point in the AABB.
unsigned int num_normals_and_offsets
Base class for all basic geometric shapes.
AABB aabb_local
AABB in local coordinate, used for tight AABB when only translation transform.
void initialize(std::shared_ptr< std::vector< Vec3s >> points_, unsigned int num_points_)
Initialize the points of the convex shape This also initializes the ConvexBase::center.
CoalScalar aabb_radius
AABB radius.
ShapeBase & operator=(const ShapeBase &other)=default
Vec3s center() const
Center of the AABB.
void computeLocalAABB()
virtual function of compute AABB in local coordinate
Vec3s center
center of the convex polytope, this is used for collision: center is guaranteed in the internal of th...
Vec3s min_
The min point in the AABB.
CoalScalar getSweptSphereRadius() const
Get radius of sphere swept around the shape. This radius is always >= 0.
void computeLocalAABB()
Compute AABB.
CoalScalar radius
Radius of the sphere.
std::shared_ptr< std::vector< double > > offsets
An array of the offsets to the normals of the polygon. Note: there are as many offsets as normals.
CoalScalar d
Plane offset.
void unitNormalTest()
Turn non-unit normal into unit.
Vec3s aabb_center
AABB center in local coordinate.
std::shared_ptr< std::vector< unsigned int > > nneighbors_
Array of indices of the neighbors of each vertex. Since we don't know a priori the number of neighbor...
void computeLocalAABB()
Compute AABB.
SupportWarmStartPolytope support_warm_starts
Support warm start polytopes.
std::shared_ptr< std::vector< Vec3s > > points
An array of the points of the polygon.
void computeLocalAABB()
Compute AABB.
CoalScalar d
Plane offset.
void set(std::shared_ptr< std::vector< Vec3s >> points_, unsigned int num_points_)
Set the points of the convex shape.
Base for convex polytope.
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58