Fixed compilation errors (Linux/g++)

This commit is contained in:
Laurent Saboret 2009-04-27 10:40:34 +00:00
parent f7108fc79f
commit 9c77d89703
6 changed files with 53 additions and 57 deletions

View File

@ -37,10 +37,10 @@ typedef K::Plane_3 Plane;
typedef K::Segment_3 Segment;
typedef K::Triangle_3 Triangle;
typedef std::list<typename Segment>::iterator Iterator;
typedef std::list<Segment>::iterator Iterator;
typedef CGAL::AABB_segment_primitive<K,Iterator> Primitive;
typedef CGAL::AABB_traits<typename K, typename Primitive> Traits;
typedef CGAL::AABB_tree<typename Traits> Tree;
typedef CGAL::AABB_traits<K, Primitive> Traits;
typedef CGAL::AABB_tree<Traits> Tree;
int main(void)
{

View File

@ -37,10 +37,10 @@ typedef K::Line_3 Line;
typedef K::Point_3 Point;
typedef K::Triangle_3 Triangle;
typedef std::list<typename Triangle>::iterator Iterator;
typedef std::list<Triangle>::iterator Iterator;
typedef CGAL::AABB_triangle_primitive<K,Iterator> Primitive;
typedef CGAL::AABB_traits<typename K, typename Primitive> AABB_triangle_traits;
typedef CGAL::AABB_tree<typename AABB_triangle_traits> Tree;
typedef CGAL::AABB_traits<K, Primitive> AABB_triangle_traits;
typedef CGAL::AABB_tree<AABB_triangle_traits> Tree;
int main(void)
{

View File

@ -27,6 +27,7 @@
#include <CGAL/Bbox_3.h>
#include <CGAL/AABB_intersections.h>
#include <CGAL/Kernel/global_functions.h>
namespace CGAL {
@ -50,7 +51,7 @@ public:
/// AABBTraits concept types
typedef typename CGAL::Bbox_3 Bounding_box;
typedef typename AABB_primitive Primitive;
typedef AABB_primitive Primitive;
typedef typename AABB_primitive::Datum Datum;
typedef typename GeomTraits::Sphere_3 Sphere;
@ -136,11 +137,6 @@ public:
bool is_contained(const Sphere& a, const Sphere& b) const;
private:
/// Private types
typedef typename GeomTraits::FT FT;
typedef typename GeomTraits::Point_3 Point_3;
private:
/**
* @brief Computes bounding box of one primitive

View File

@ -47,7 +47,7 @@ namespace CGAL {
typedef typename AABBTraits::Intersection Intersection;
typedef typename AABBTraits::Projection_query Projection_query;
private:
typedef typename AABB_search_tree<AABBTraits> Search_tree;
typedef AABB_search_tree<AABBTraits> Search_tree;
public:
/**
@ -348,7 +348,7 @@ namespace CGAL {
{
// iterate over primitives to get points on them
std::list<Projection_query> points;
std::vector<Primitive>::const_iterator it;
typename std::vector<Primitive>::const_iterator it;
for(it = m_data.begin(); it != m_data.end(); it++)
{
const Primitive& pr = *it;

View File

@ -43,14 +43,14 @@ void test_all_query_types(Tree& tree)
{
std::cout << "Test all query types" << std::endl;
typedef K::FT FT;
typedef K::Ray_3 Ray;
typedef K::Line_3 Line;
typedef K::Point_3 Point;
typedef K::Vector_3 Vector;
typedef K::Segment_3 Segment;
typedef Tree::Primitive Primitive;
typedef Tree::Intersection Intersection;
typedef typename K::FT FT;
typedef typename K::Ray_3 Ray;
typedef typename K::Line_3 Line;
typedef typename K::Point_3 Point;
typedef typename K::Vector_3 Vector;
typedef typename K::Segment_3 Segment;
typedef typename Tree::Primitive Primitive;
typedef typename Tree::Intersection Intersection;
Point p((FT)-0.5, (FT)-0.5, (FT)-0.5);
Point q((FT) 0.5, (FT) 0.5, (FT) 0.5);
@ -93,10 +93,10 @@ void test_speed(Tree& tree,
Polyhedron& polyhedron)
{
std::cout << "Test for speed" << std::endl;
typedef K::FT FT;
typedef K::Ray_3 Ray;
typedef K::Point_3 Point;
typedef K::Vector_3 Vector;
typedef typename K::FT FT;
typedef typename K::Ray_3 Ray;
typedef typename K::Point_3 Point;
typedef typename K::Vector_3 Vector;
CGAL::Timer timer;
unsigned int nb = 0;
@ -117,10 +117,10 @@ void test_speed(Tree& tree,
template <class K>
void test(const char *filename)
{
typedef K::FT FT;
typedef K::Ray_3 Ray;
typedef K::Point_3 Point;
typedef K::Vector_3 Vector;
typedef typename K::FT FT;
typedef typename K::Ray_3 Ray;
typedef typename K::Point_3 Point;
typedef typename K::Vector_3 Vector;
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef CGAL::AABB_polyhedron_triangle_primitive<K,Polyhedron> Primitive;
typedef CGAL::AABB_traits<K, Primitive> Traits;

View File

@ -36,10 +36,10 @@ template <class Tree, class Polyhedron, class K>
void test_speed(Tree& tree,
Polyhedron& polyhedron)
{
typedef K::FT FT;
typedef K::Ray_3 Ray;
typedef K::Point_3 Point;
typedef K::Vector_3 Vector;
typedef typename K::FT FT;
typedef typename K::Ray_3 Ray;
typedef typename K::Point_3 Point;
typedef typename K::Vector_3 Vector;
CGAL::Timer timer;
unsigned int nb = 0;
@ -58,10 +58,10 @@ void test_speed(Tree& tree,
template <class K>
void test(const char *filename)
{
typedef K::FT FT;
typedef K::Ray_3 Ray;
typedef K::Point_3 Point;
typedef K::Vector_3 Vector;
typedef typename K::FT FT;
typedef typename K::Ray_3 Ray;
typedef typename K::Point_3 Point;
typedef typename K::Vector_3 Vector;
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef CGAL::AABB_polyhedron_triangle_primitive<K,Polyhedron> Primitive;
typedef CGAL::AABB_traits<K, Primitive> Traits;