- Move Triangulation_hierarchy_vertex_base_3<> in its own file.

This commit is contained in:
Sylvain Pion 2001-05-22 14:40:07 +00:00
parent 7a89117dd3
commit 392ff43801
3 changed files with 62 additions and 29 deletions

View File

@ -1,3 +1,6 @@
Version 1.53 (?? May 01)
- Put Triangulation_hierarchy_vertex_base_3 in its own file.
Version 1.52 (22 May 01)
- Regular works again.
- Fix memleak in TDS.

View File

@ -25,38 +25,10 @@
#define CGAL_TRIANGULATION_HIERARCHY_3_H
#include <CGAL/Random.h>
#include <CGAL/Triangulation_hierarchy_vertex_base_3.h>
CGAL_BEGIN_NAMESPACE
template < class Vbb>
class Triangulation_hierarchy_vertex_base_3
: public Vbb
{
public:
typedef Vbb V_Base;
typedef typename V_Base::Point Point;
Triangulation_hierarchy_vertex_base_3()
: V_Base(), _up(0), _down(0) {}
Triangulation_hierarchy_vertex_base_3(const Point & p, void* f)
: V_Base(p,f), _up(0), _down(0) {}
Triangulation_hierarchy_vertex_base_3(const Point & p)
: V_Base(p), _up(0), _down(0) {}
public: // for use in Triangulation_hierarchy only
// friend class Triangulation_hierarchy_3;
void* up() const {return _up;}
void* down() const {return _down;}
void set_up(void *u) {_up=u;}
void set_down(void *d) {if (this) _down=d;}
private:
void* _up; // same vertex one level above
void* _down; // same vertex one level below
};
// parameterization of the hierarchy
//const float Triangulation_hierarchy_3__ratio = 30.0;
const int Triangulation_hierarchy_3__ratio = 30;

View File

@ -0,0 +1,58 @@
// ============================================================================
//
// Copyright (c) 1998, 2001 The CGAL Consortium
//
// This software and related documentation is part of an INTERNAL release
// of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use.
//
// ----------------------------------------------------------------------------
//
// release :
// release_date :
//
// file : include/CGAL/Triangulation_hierarchy_vertex_base_3.h
// revision : $Revision$
// revision_date : $Date$
// package : Triangulation3
// author(s) : Olivier Devillers, Sylvain Pion
//
// coordinator : INRIA Sophia-Antipolis (<Mariette.Yvinec@sophia.inria.fr>)
//
// ============================================================================
#ifndef CGAL_TRIANGULATION_HIERARCHY_VERTEX_BASE_3_H
#define CGAL_TRIANGULATION_HIERARCHY_VERTEX_BASE_3_H
CGAL_BEGIN_NAMESPACE
template < class Vbb>
class Triangulation_hierarchy_vertex_base_3
: public Vbb
{
public:
typedef Vbb V_Base;
typedef typename V_Base::Point Point;
Triangulation_hierarchy_vertex_base_3()
: V_Base(), _up(0), _down(0) {}
Triangulation_hierarchy_vertex_base_3(const Point & p, void* f)
: V_Base(p,f), _up(0), _down(0) {}
Triangulation_hierarchy_vertex_base_3(const Point & p)
: V_Base(p), _up(0), _down(0) {}
void* up() const {return _up;}
void* down() const {return _down;}
void set_up(void *u) {_up=u;}
void set_down(void *d) {if (this) _down=d;}
private:
void* _up; // same vertex one level above
void* _down; // same vertex one level below
};
CGAL_END_NAMESPACE
#endif // CGAL_TRIANGULATION_HIERARCHY_VERTEX_BASE_3_H