From ecdb5c6ad47d5581c23120d21359cc2c78f93f3b Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 3 Oct 2005 16:18:15 +0000 Subject: [PATCH] add template parameter for spatialindexing struction --- vcg/complex/intersection.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vcg/complex/intersection.h b/vcg/complex/intersection.h index d17fa942..06b9a254 100644 --- a/vcg/complex/intersection.h +++ b/vcg/complex/intersection.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/05/30 09:11:20 ganovelli +header added, error in include + Revision 1.3 2005/05/17 21:19:37 ganovelli some std::and typename missing (CRS4) @@ -38,7 +41,7 @@ added vcg header #include #include #include -#include +//#include #include @@ -103,16 +106,16 @@ bool Intersect( GridType & grid,Plane3 plane, std::vector +template < typename TriMeshType, typename EdgeMeshType, class ScalarType, class IndexingType > bool Intersection( /*TriMeshType & m, */ Plane3 pl, EdgeMeshType & em, double& ave_length, - typename GridStaticPtr *grid, - typename std::vector< typename GridStaticPtr::Cell* >& cells) + typename IndexingType *grid, + typename std::vector< typename IndexingType::Cell* >& cells) { typedef typename TriMeshType::FaceContainer FaceContainer; - typedef GridStaticPtr GridType; + typedef IndexingType GridType; typename EdgeMeshType::VertexIterator vi; typename TriMeshType::FaceIterator fi; std::vector v;