#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>
Go to the source code of this file.
| typedef vcg::Point2<MyScalarType> MyCoordType |
Definition at line 32 of file test_hash2d.cpp.
| typedef vcg::Ray2<MyScalarType> MyRayType |
Definition at line 33 of file test_hash2d.cpp.
| typedef double MyScalarType |
Definition at line 31 of file test_hash2d.cpp.
| 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.
| MySegmentType* GetClosesestSegmentBruteF | ( | MyCoordType & | _p, |
| MyCoordType & | _closestPt | ||
| ) |
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.
| vcg::Point2<MyScalarType> RandomPoint | ( | MyScalarType | SpaceSize = 100 | ) |
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.
| std::vector<MySegmentType> AllocatedSeg |
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.