Remove useless and undocumented "circumcenter()" member function

This commit is contained in:
Clement Jamin 2016-05-20 15:10:00 +02:00
parent 9add88a784
commit 5ddfba30fd
3 changed files with 7 additions and 24 deletions

View File

@ -9,7 +9,7 @@ a regular triangulation. It corresponds to the first template parameter of the c
\cgalRefines TriangulationTraits.
\cgalHasModel `CGAL::Epick_d<Dim>`
\cgalHasModel `CGAL::Regular_triangulation_euclidean_traits<K>`
*/
class RegularTriangulationTraits {
public:
@ -18,14 +18,14 @@ public:
/// @{
/*!
A number type that is a model for `RingNumberType`.
A number type that is a model for `FieldNumberType`.
*/
typedef unspecified_type RT;
typedef unspecified_type FT;
/*!
The weighted point type.
*/
typedef unspecified_type Weighted_point_d;
typedef unspecified_type Weighted_point;
/*!
A function object that must provide the operator
@ -36,14 +36,14 @@ typedef unspecified_type Point_drop_weight_d;
/*!
A function object that must provide the operator
`RT operator()(const Weighted_point & wp)`, returning
`FT operator()(const Weighted_point & wp)`, returning
the weight of `wp`.
*/
typedef unspecified_type Point_weight_d;
/*!
A predicate object that must provide the templated operator
`template<typename ForwardIterator> Oriented_side operator()(ForwardIterator start, ForwardIterator end, const Weighted_point_d & p)`.
`template<typename ForwardIterator> Oriented_side operator()(ForwardIterator start, ForwardIterator end, const Weighted_point & p)`.
Let \f$ S \f$ be the power sphere of the weighted points in range `[start,end)`.
The operator returns:
- `ON_ORIENTED_BOUNDARY` if `p` is orthogonal to
@ -64,7 +64,7 @@ typedef unspecified_type Power_test_d;
/*!
A predicate object that must provide the templated operator
`template<typename ForwardIterator> Oriented_side operator()(Flat_orientation_d orient, ForwardIterator start, ForwardIterator end, const Weighted_point_d & p)`.
`template<typename ForwardIterator> Oriented_side operator()(Flat_orientation_d orient, ForwardIterator start, ForwardIterator end, const Weighted_point & p)`.
The points in range `[start,end)` and `p` are supposed to belong to the lower-dimensional flat
whose orientation is given by `orient`.

View File

@ -66,22 +66,6 @@ public:
Triangulation_full_cell(const Self & s)
: Base(s), data_(s.data_) {}
Point circumcenter() const
{
TriangulationTraits pct;
Vertex_handle_const_iterator vhit = vertices_begin();
while( vhit != vertices_end() )
{
if( *vhit == Vertex_const_handle() )
{
CGAL_warning_msg(false, "too few points; can not compute circumcenter.");
return Point();
}
++vhit;
}
return pct.center_of_sphere_d_object()(points_begin(), points_end());
}
const Data & data() const
{
return data_;

View File

@ -53,7 +53,6 @@ void test(const int d, const string & type, int N)
Finite_full_cell_const_iterator fsit = tri.finite_full_cells_begin();
while( fsit != tri.finite_full_cells_end() )
{
fsit->circumcenter();
++fsit, ++nbfs;
}
cerr << nbfs << " + ";