Classes | Macros | Functions | Variables
benchmark.cpp File Reference
#include <boost/filesystem.hpp>
#include <hpp/fcl/internal/traversal_node_setup.h>
#include <hpp/fcl/internal/traversal_node_bvhs.h>
#include "../src/collision_node.h"
#include <hpp/fcl/internal/BV_splitter.h>
#include "utility.h"
#include "fcl_resources/config.h"
Include dependency graph for benchmark.cpp:

Go to the source code of this file.

Classes

struct  traits< BV >
 
struct  traits< kIOS >
 
struct  traits< OBB >
 
struct  traits< OBBRSS >
 
struct  traits< RSS >
 

Macros

#define RUN_CASE(BV, tf, models, split)   run<BV>(tf, models, split, #BV " - " #split ":\t")
 

Functions

template<typename BV , typename TraversalNode >
double collide (const std::vector< Transform3f > &tf, const BVHModel< BV > &m1, const BVHModel< BV > &m2, bool verbose)
 
template<typename BV , typename TraversalNode >
double distance (const std::vector< Transform3f > &tf, const BVHModel< BV > &m1, const BVHModel< BV > &m2, bool verbose)
 
int main (int, char *[])
 
template<typename BV >
void makeModel (const std::vector< Vec3f > &vertices, const std::vector< Triangle > &triangles, SplitMethodType split_method, BVHModel< BV > &model)
 
template<typename BV >
double run (const std::vector< Transform3f > &tf, const BVHModel< BV >(&models)[2][3], int split_method, const char *sm_name)
 
template<>
double run< OBB > (const std::vector< Transform3f > &tf, const BVHModel< OBB >(&models)[2][3], int split_method, const char *prefix)
 

Variables

FCL_REAL DELTA = 0.001
 
bool verbose = false
 

Macro Definition Documentation

◆ RUN_CASE

#define RUN_CASE (   BV,
  tf,
  models,
  split 
)    run<BV>(tf, models, split, #BV " - " #split ":\t")

Definition at line 27 of file benchmark.cpp.

Function Documentation

◆ collide()

template<typename BV , typename TraversalNode >
double collide ( const std::vector< Transform3f > &  tf,
const BVHModel< BV > &  m1,
const BVHModel< BV > &  m2,
bool  verbose 
)

Definition at line 117 of file benchmark.cpp.

◆ distance()

template<typename BV , typename TraversalNode >
double distance ( const std::vector< Transform3f > &  tf,
const BVHModel< BV > &  m1,
const BVHModel< BV > &  m2,
bool  verbose 
)

Definition at line 93 of file benchmark.cpp.

◆ main()

int main ( int  ,
char *  [] 
)

Definition at line 168 of file benchmark.cpp.

◆ makeModel()

template<typename BV >
void makeModel ( const std::vector< Vec3f > &  vertices,
const std::vector< Triangle > &  triangles,
SplitMethodType  split_method,
BVHModel< BV > &  model 
)

Definition at line 81 of file benchmark.cpp.

◆ run()

template<typename BV >
double run ( const std::vector< Transform3f > &  tf,
const BVHModel< BV >(&)  models[2][3],
int  split_method,
const char *  sm_name 
)

Definition at line 144 of file benchmark.cpp.

◆ run< OBB >()

template<>
double run< OBB > ( const std::vector< Transform3f > &  tf,
const BVHModel< OBB >(&)  models[2][3],
int  split_method,
const char *  prefix 
)

Definition at line 157 of file benchmark.cpp.

Variable Documentation

◆ DELTA

FCL_REAL DELTA = 0.001

Definition at line 33 of file benchmark.cpp.

◆ verbose

bool verbose = false

Definition at line 32 of file benchmark.cpp.



hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:02