Changed ray-triangle functor.

This commit is contained in:
Marco Di Benedetto 2005-09-29 11:52:22 +00:00
parent 521dd26e02
commit 83eb240e34
1 changed files with 2 additions and 2 deletions

View File

@ -13,9 +13,9 @@
#include <vcg/complex/trimesh/update/normal.h>
#include <vcg/complex/trimesh/update/edges.h>
#include <vcg/complex/trimesh/update/flag.h>
#include <vcg/space/intersection3.h>
#include <vcg/space/index/aabb_binary_tree/aabb_binary_tree.h>
#include <vcg/space/index/aabb_binary_tree/face_functors.h>
typedef float AScalarType;
@ -85,7 +85,7 @@ static void TestKClosest(void) {
static void TestRay(void) {
const bool TEST_BACK_FACES = true;
vcg::FaceRayIntersectFunctor<TEST_BACK_FACES> rayIntersector;
vcg::RayTriangleIntersectionFunctor<TEST_BACK_FACES> rayIntersector;
const AIndex::ScalarType maxDist = std::numeric_limits<AIndex::ScalarType>::max();
const AIndex::CoordType rayOrigin((AIndex::ScalarType)0, (AIndex::ScalarType)0, (AIndex::ScalarType)0);
const AIndex::CoordType rayDirection((AIndex::ScalarType)1, (AIndex::ScalarType)0, (AIndex::ScalarType)0);