Classes | Typedefs | Functions | Variables
test_hash2d.cpp File Reference
#include <stdio.h>
#include <time.h>
#include <vcg/space/distance2.h>
#include <vcg/space/segment2.h>
#include <vcg/space/index/grid_static_ptr2d.h>
#include <vcg/space/index/grid_closest2d.h>
#include <vcg/space/intersection2.h>
Include dependency graph for test_hash2d.cpp:

Go to the source code of this file.

Classes

class  MyMarker
class  MySegmentType

Typedefs

typedef vcg::Point2< MyScalarTypeMyCoordType
typedef vcg::Ray2< MyScalarTypeMyRayType
typedef double MyScalarType

Functions

MySegmentTypeDoRay (MyRayType &_r, MyCoordType &_closestPt)
MySegmentTypeDoRayBruteF (MyRayType &_r, MyCoordType &_closestPt)
MySegmentTypeGetClosesestSegmentBruteF (MyCoordType &_p, MyCoordType &_closestPt)
MySegmentTypeGetClosestSegment (MyCoordType &_p, MyCoordType &_closestPt)
void GetInBoxSegments (vcg::Box2< MyScalarType > bbox, std::vector< MySegmentType * > &result)
void GetInBoxSegmentsBruteF (vcg::Box2< MyScalarType > bbox, std::vector< MySegmentType * > &result)
void InitRandom (int num, MyScalarType SpaceSize=100, MyScalarType maxdim=1)
int main (int argc, char **argv)
vcg::Point2< MyScalarTypeRandomPoint (MyScalarType SpaceSize=100)
void RandomSeg (vcg::Point2< MyScalarType > &P0, vcg::Point2< MyScalarType > &P1, MyScalarType SpaceSize=100, MyScalarType maxdim=1)
void TestBox (int num_test=100000, MyScalarType SpaceSize=100)
void TestClosest (int num_test=100000, MyScalarType SpaceSize=100)
void TestRay (int num_test=100000, MyScalarType SpaceSize=100)

Variables

std::vector< MySegmentTypeAllocatedSeg
vcg::GridStaticPtr2D
< MySegmentType, MyScalarType
Grid2D
MyMarker mf

Typedef Documentation

Definition at line 32 of file test_hash2d.cpp.

Definition at line 33 of file test_hash2d.cpp.

typedef double MyScalarType

Definition at line 31 of file test_hash2d.cpp.


Function Documentation

MySegmentType* DoRay ( MyRayType _r,
MyCoordType _closestPt 
)

Definition at line 152 of file test_hash2d.cpp.

MySegmentType* DoRayBruteF ( MyRayType _r,
MyCoordType _closestPt 
)

Definition at line 199 of file test_hash2d.cpp.

Definition at line 179 of file test_hash2d.cpp.

MySegmentType* GetClosestSegment ( MyCoordType _p,
MyCoordType _closestPt 
)

Definition at line 137 of file test_hash2d.cpp.

void GetInBoxSegments ( vcg::Box2< MyScalarType bbox,
std::vector< MySegmentType * > &  result 
)

Definition at line 147 of file test_hash2d.cpp.

void GetInBoxSegmentsBruteF ( vcg::Box2< MyScalarType bbox,
std::vector< MySegmentType * > &  result 
)

Definition at line 169 of file test_hash2d.cpp.

void InitRandom ( int  num,
MyScalarType  SpaceSize = 100,
MyScalarType  maxdim = 1 
)

Definition at line 92 of file test_hash2d.cpp.

int main ( int  argc,
char **  argv 
)

Initialization performance

Definition at line 325 of file test_hash2d.cpp.

Definition at line 68 of file test_hash2d.cpp.

void RandomSeg ( vcg::Point2< MyScalarType > &  P0,
vcg::Point2< MyScalarType > &  P1,
MyScalarType  SpaceSize = 100,
MyScalarType  maxdim = 1 
)

Definition at line 79 of file test_hash2d.cpp.

void TestBox ( int  num_test = 100000,
MyScalarType  SpaceSize = 100 
)

Definition at line 221 of file test_hash2d.cpp.

void TestClosest ( int  num_test = 100000,
MyScalarType  SpaceSize = 100 
)

Definition at line 258 of file test_hash2d.cpp.

void TestRay ( int  num_test = 100000,
MyScalarType  SpaceSize = 100 
)

Definition at line 286 of file test_hash2d.cpp.


Variable Documentation

Definition at line 64 of file test_hash2d.cpp.

Definition at line 134 of file test_hash2d.cpp.

Definition at line 133 of file test_hash2d.cpp.



shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:38:55