Small modifications

This commit is contained in:
Mostafa-ashraf19 2022-07-20 12:48:29 +02:00
parent e050176613
commit 0bc2f1050f
1 changed files with 13 additions and 15 deletions

View File

@ -13,6 +13,14 @@
#define CGAL_GRAPHIC_BUFFER_H
#include <CGAL/license/GraphicsView.h>
#include <QString>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <tuple>
#include <vector>
#include <CGAL/Cartesian_converter.h>
#include <CGAL/Constrained_Delaunay_triangulation_2.h>
@ -24,9 +32,6 @@
#include <CGAL/assertions.h>
#include <cstdlib>
#include <map>
#include <queue>
#include <string>
#include <CGAL/Buffer_for_vao.h>
// #include <CGAL/Qt/Basic_viewer_qt.h>
@ -35,10 +40,10 @@ namespace CGAL {
// This class is responsible for dealing with available CGAL data structures and
// handling buffers.
template <typename BufferType = float> class GraphicBuffer {
template <typename BufferType = float>
class GraphicBuffer {
public:
typedef CGAL::Exact_predicates_inexact_constructions_kernel Local_kernel;
typedef Local_kernel::Point_3 Local_point;
@ -141,17 +146,11 @@ public:
return m_buffer_for_clipping_plane;
}
const CGAL::Bbox_3 &get_bounding_box() const {
return m_bounding_box;
}
const CGAL::Bbox_3 &get_bounding_box() const { return m_bounding_box; }
std::vector<float>& get_array_of_index(int index) {
return arrays[index];
}
std::vector<float> &get_array_of_index(int index) { return arrays[index]; }
void update_bounding_box(CGAL::Bbox_3& box) {
m_bounding_box += box;
}
void update_bounding_box(CGAL::Bbox_3 &box) { m_bounding_box += box; }
void initiate_bounding_box(CGAL::Bbox_3 new_bounding_box) {
m_bounding_box = new_bounding_box;
@ -330,7 +329,6 @@ public:
add_text(kp, txt.c_str());
}
protected:
// The following enum gives the indices of different elements of arrays
// vectors.