All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Member Functions | Public Attributes | Private Types | Static Private Member Functions | Private Attributes
fcl::details::EPA Struct Reference

class for EPA algorithm More...

#include <gjk.h>

List of all members.

Classes

struct  SimplexF
struct  SimplexHorizon
struct  SimplexList

Public Types

enum  Status {
  Valid, Touching, Degenerated, NonConvex,
  InvalidHull, OutOfFaces, OutOfVertices, AccuracyReached,
  FallBack, Failed
}

Public Member Functions

 EPA (unsigned int max_face_num_, unsigned int max_vertex_num_, unsigned int max_iterations_, FCL_REAL tolerance_)
Status evaluate (GJK &gjk, const Vec3f &guess)
bool expand (size_t pass, SimplexV *w, SimplexF *f, size_t e, SimplexHorizon &horizon)
 the goal is to add a face connecting vertex w and face edge f[e]
SimplexFfindBest ()
 Find the best polytope face to split.
bool getEdgeDist (SimplexF *face, SimplexV *a, SimplexV *b, FCL_REAL &dist)
void initialize ()
SimplexFnewFace (SimplexV *a, SimplexV *b, SimplexV *c, bool forced)
 ~EPA ()

Public Attributes

FCL_REAL depth
SimplexFfc_store
SimplexList hull
size_t nextsv
Vec3f normal
GJK::Simplex result
Status status
SimplexList stock
SimplexVsv_store

Private Types

typedef GJK::SimplexV SimplexV

Static Private Member Functions

static void bind (SimplexF *fa, size_t ea, SimplexF *fb, size_t eb)

Private Attributes

unsigned int max_face_num
unsigned int max_iterations
unsigned int max_vertex_num
FCL_REAL tolerance

Detailed Description

class for EPA algorithm

Definition at line 187 of file gjk.h.


Member Typedef Documentation

Definition at line 190 of file gjk.h.


Member Enumeration Documentation

Enumerator:
Valid 
Touching 
Degenerated 
NonConvex 
InvalidHull 
OutOfFaces 
OutOfVertices 
AccuracyReached 
FallBack 
Failed 

Definition at line 247 of file gjk.h.


Constructor & Destructor Documentation

fcl::details::EPA::EPA ( unsigned int  max_face_num_,
unsigned int  max_vertex_num_,
unsigned int  max_iterations_,
FCL_REAL  tolerance_ 
) [inline]

Definition at line 258 of file gjk.h.

Definition at line 266 of file gjk.h.


Member Function Documentation

static void fcl::details::EPA::bind ( SimplexF fa,
size_t  ea,
SimplexF fb,
size_t  eb 
) [inline, static, private]

Definition at line 225 of file gjk.h.

EPA::Status fcl::details::EPA::evaluate ( GJK gjk,
const Vec3f guess 
)

Definition at line 593 of file gjk.cpp.

bool fcl::details::EPA::expand ( size_t  pass,
SimplexV w,
SimplexF f,
size_t  e,
SimplexHorizon horizon 
)

the goal is to add a face connecting vertex w and face edge f[e]

Definition at line 716 of file gjk.cpp.

Find the best polytope face to split.

Definition at line 577 of file gjk.cpp.

bool fcl::details::EPA::getEdgeDist ( SimplexF face,
SimplexV a,
SimplexV b,
FCL_REAL dist 
)

Definition at line 504 of file gjk.cpp.

Definition at line 492 of file gjk.cpp.

EPA::SimplexF * fcl::details::EPA::newFace ( SimplexV a,
SimplexV b,
SimplexV c,
bool  forced 
)

Definition at line 535 of file gjk.cpp.


Member Data Documentation

Definition at line 252 of file gjk.h.

Definition at line 254 of file gjk.h.

Definition at line 256 of file gjk.h.

unsigned int fcl::details::EPA::max_face_num [private]

Definition at line 240 of file gjk.h.

unsigned int fcl::details::EPA::max_iterations [private]

Definition at line 242 of file gjk.h.

unsigned int fcl::details::EPA::max_vertex_num [private]

Definition at line 241 of file gjk.h.

Definition at line 255 of file gjk.h.

Definition at line 251 of file gjk.h.

Definition at line 250 of file gjk.h.

Definition at line 249 of file gjk.h.

Definition at line 256 of file gjk.h.

Definition at line 253 of file gjk.h.

Definition at line 243 of file gjk.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


fcl
Author(s): Jia Pan
autogenerated on Tue Jan 15 2013 16:05:32