All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends

fcl::kIOS Class Reference

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

#include <kIOS.h>

List of all members.


Public Member Functions

bool overlap (const kIOS &other) const
 Check collision between two kIOS.
bool overlap (const kIOS &other, kIOS &overlap_part) const
 Check collision between two kIOS and return the overlap part. For kIOS, we return nothing, as the overlappart of two kIOS usually is not an kIOS.
bool contain (const Vec3f &p) const
 Check whether the kIOS contains a point.
kIOSoperator+= (const Vec3f &p)
 A simple way to merge the kIOS and a point.
kIOSoperator+= (const kIOS &other)
 Merge the kIOS and another kIOS.
kIOS operator+ (const kIOS &other) const
 Return the merged kIOS of current kIOS and the other one.
const Vec3fcenter () const
 Center of the kIOS.
FCL_REAL width () const
 Width of the kIOS.
FCL_REAL height () const
 Height of the kIOS.
FCL_REAL depth () const
 Depth of the kIOS.
FCL_REAL volume () const
 Volume of the kIOS.
FCL_REAL size () const
 size of the kIOS (used in BV_Splitter to order two kIOSs)
FCL_REAL distance (const kIOS &other, Vec3f *P=NULL, Vec3f *Q=NULL) const
 The distance between two kIOS.

Public Attributes

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

Classes

struct  kIOS_Sphere
 One sphere in kIOS.

Detailed Description

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

Definition at line 47 of file kIOS.h.


Member Function Documentation

bool fcl::kIOS::overlap ( const kIOS other,
kIOS overlap_part 
) const [inline]

Check collision between two kIOS and return the overlap part. For kIOS, we return nothing, as the overlappart of two kIOS usually is not an kIOS.

Todo:
Not efficient. It first checks the sphere collisions and then use OBB for further culling.

Definition at line 98 of file kIOS.h.


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