class to function

This commit is contained in:
Eli Packer 2003-06-26 13:32:06 +00:00
parent ca253d0d6c
commit 74b5c7cbef
1 changed files with 5 additions and 16 deletions

View File

@ -159,9 +159,6 @@ public:
typedef typename Segments_container::const_iterator Segment_const_iterator;
typedef typename Segments_container::iterator Segment_iterator;
// static bool erase_hp;
// static inline bool get_erase_hp() {return(erase_hp);}
//! A constructor
Snap_rounding_2(Segment_const_iterator begin,
Segment_const_iterator end,
@ -316,12 +313,10 @@ Hot_Pixel<Rep_>::Hot_Pixel(const Point_2& inp_point,NT inp_pixel_size) :
template<class Rep_>
Hot_Pixel<Rep_>::~Hot_Pixel()
{
// if(Snap_rounding_2<Rep_>::get_erase_hp()) {
delete(right_seg);
delete(left_seg);
delete(top_seg);
delete(bot_seg);
// }
delete(right_seg);
delete(left_seg);
delete(top_seg);
delete(bot_seg);
}
template<class Rep_>
@ -715,9 +710,7 @@ void Snap_rounding_2<Rep_>::iterate(
// segment entirely inside a pixel
hp = new Hot_Pixel<Rep_>(iter->source(),pixel_size);
seg_output.push_back(hp->get_center(int_output));
//erase_hp = true;
delete(hp);
// erase_hp = false;
} else {
seg_output.push_back((*hot_pixel_iter)->get_center(int_output));
if(number_of_intersections > 1) {
@ -745,8 +738,7 @@ Snap_rounding_2<Rep_>::Snap_rounding_2(
bool int_output,
unsigned int number_of_kd_trees)
{
// initialize approximation angles map
//erase_hp = false;
// initialize approximation angles map
number_of_segments = 0;
// copy segments list
while(begin != end) {
@ -764,9 +756,6 @@ Snap_rounding_2<Rep_>::Snap_rounding_2(
template<class Rep>
typename Snap_rounding_2<Rep>::Direction Snap_rounding_2<Rep>::seg_dir;
//template<class Rep>
//bool Snap_rounding_2<Rep>::erase_hp = false;
CGAL_END_NAMESPACE
#endif // CGAL_ISR_2_H