Classes | Public Member Functions | Public Attributes | Static Public Attributes | Static Private Member Functions | List of all members
coal::kIOS Class Reference

A class describing the kIOS collision structure, which is a set of spheres. More...

#include <kIOS.h>

Classes

struct  kIOS_Sphere
 One sphere in kIOS. More...
 

Public Member Functions

const Vec3scenter () const
 Center of the kIOS. More...
 
bool contain (const Vec3s &p) const
 Check whether the kIOS contains a point. More...
 
CoalScalar depth () const
 Depth of the kIOS. More...
 
CoalScalar distance (const kIOS &other, Vec3s *P=NULL, Vec3s *Q=NULL) const
 The distance between two kIOS. More...
 
CoalScalar height () const
 Height of the kIOS. More...
 
bool operator!= (const kIOS &other) const
 Difference operator. More...
 
kIOS operator+ (const kIOS &other) const
 Return the merged kIOS of current kIOS and the other one. More...
 
kIOSoperator+= (const kIOS &other)
 Merge the kIOS and another kIOS. More...
 
kIOSoperator+= (const Vec3s &p)
 A simple way to merge the kIOS and a point. More...
 
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool operator== (const kIOS &other) const
 Equality operator. More...
 
bool overlap (const kIOS &other) const
 Check collision between two kIOS. More...
 
bool overlap (const kIOS &other, const CollisionRequest &, CoalScalar &sqrDistLowerBound) const
 Check collision between two kIOS. More...
 
CoalScalar size () const
 size of the kIOS (used in BV_Splitter to order two kIOSs) More...
 
CoalScalar volume () const
 Volume of the kIOS. More...
 
CoalScalar width () const
 Width of the kIOS. More...
 

Public Attributes

unsigned int num_spheres
 The number of spheres, no larger than 5. More...
 
OBB obb
 @ OBB related with kIOS More...
 
kIOS_Sphere spheres [max_num_spheres]
 The (at most) five spheres for intersection. More...
 

Static Public Attributes

static constexpr size_t max_num_spheres = 5
 

Static Private Member Functions

static kIOS_Sphere encloseSphere (const kIOS_Sphere &s0, const kIOS_Sphere &s1)
 generate one sphere enclosing two spheres More...
 

Detailed Description

A class describing the kIOS collision structure, which is a set of spheres.

Definition at line 52 of file coal/BV/kIOS.h.


The documentation for this class was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00