From a68ad47df0f84fe6c9da2654156540737ab56f0c Mon Sep 17 00:00:00 2001 From: Mostafa-ashraf19 Date: Fri, 22 Jul 2022 15:17:44 +0200 Subject: [PATCH] Local_Kernel error during compiling --- .../CGAL/draw_linear_cell_complex_function.h | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Linear_cell_complex/include/CGAL/draw_linear_cell_complex_function.h b/Linear_cell_complex/include/CGAL/draw_linear_cell_complex_function.h index cace65d7e30..afab1cf2f05 100644 --- a/Linear_cell_complex/include/CGAL/draw_linear_cell_complex_function.h +++ b/Linear_cell_complex/include/CGAL/draw_linear_cell_complex_function.h @@ -12,8 +12,8 @@ #ifndef CGAL_DRAW_LCC_H #define CGAL_DRAW_LCC_H -#include #include +#include #ifdef CGAL_USE_BASIC_VIEWER #include @@ -138,13 +138,10 @@ struct LCC_geom_utils { } }; -// #define LCC CGAL_LCC_TYPE -// TODO? - - -template -void compute_face(typename LCC::Dart_const_handle dh, typename LCC::Dart_const_handle voldh, const LCC *lcc, +template +void compute_face(typename LCC::Dart_const_handle dh, + typename LCC::Dart_const_handle voldh, const LCC *lcc, bool m_nofaces, bool m_random_face_color, const DrawingFunctorLCC &m_drawing_functor, GraphicBuffer &graphic_buffer) { @@ -232,10 +229,9 @@ void compute_vertex(typename LCC::Dart_const_handle dh, const LCC *lcc, } template -void compute_elements(const LCC *lcc, +void compute_elements(GraphicBuffer &graphic_buffer, const LCC *lcc, const DrawingFunctorLCC &m_drawing_functor, - bool m_nofaces, bool m_random_face_color, - GraphicBuffer &graphic_buffer) { + bool m_nofaces, bool m_random_face_color) { if (lcc == nullptr) return; @@ -327,13 +323,13 @@ void compute_elements(const LCC *lcc, // This function is responsible for filling the buffer to allow visualization. template void add_in_graphic_buffer_lcc(GraphicBuffer &graphic_buffer, - const DrawingFunctorLCC &m_drawing_functor, + const DrawingFunctorLCC &m_drawing_functor, const LCC *alcc = nullptr, bool nofill = false, - bool m_random_face_color = false - ) { + bool m_random_face_color = false) { if (alcc != nullptr) { - compute_elements(graphic_buffer, alcc, m_drawing_functor); + compute_elements(graphic_buffer, alcc, m_drawing_functor, nofill, + m_random_face_color); } }