RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
TreeDistanceCalc Class Referenceabstract

this class encapsulates the methods for iterating through two hierachical BV trees and finding the smallest distance between any triangle in the trees. More...

#include <TreeDistanceCalc.hpp>

Public Types

typedef rw::proximity::BinaryOBBPtrTreeD BVTREE
 
typedef BVTREE BVTree
 

Public Member Functions

virtual double distance (const rw::math::Transform3D<> &fTA, const BVTREE &A, const rw::math::Transform3D<> &fTB, const BVTREE &B)=0
 
virtual int getMemUsage ()=0
 returns the amount of heap memmory used by the tree distance calculator. More...
 
virtual int getNrOfTestedBVs ()
 
virtual int getNrOfCollidingBVs ()
 
virtual int getNrOfTestedPrimitives ()
 
virtual int getNrOfCollidingPrimitives ()
 

Detailed Description

this class encapsulates the methods for iterating through two hierachical BV trees and finding the smallest distance between any triangle in the trees.

Member Function Documentation

◆ distance()

virtual double distance ( const rw::math::Transform3D<> &  fTA,
const BVTREE A,
const rw::math::Transform3D<> &  fTB,
const BVTREE B 
)
pure virtual
Parameters
fTA[in] transform from reference frame f to tree treeA root.
A[in]
fTB[in] transform from reference frame f to tree treeB root.
B[in]

◆ getMemUsage()

virtual int getMemUsage ( )
pure virtual

returns the amount of heap memmory used by the tree distance calculator.

Returns
nr of bytes used

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