<commit_before>#include "model.h"
#include "helper.h"

#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/ext.hpp>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <iostream>
#include <math.h>

#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
#undef near
#undef far
#endif

// int main(int argc, char const *argv[])
// {
// 		auto oct = std::make_unique<tnw::octree::Tree>();
// 		tnw::octree::BoundingBox bb = tnw::octree::BoundingBox(glm::vec3(-1,-1,1), 2);
// 		tnw::octree::Sphere s(glm::vec3(0,0,0), 0.5);
// 		tnw::octree::SquarePyramid sp(glm::vec3(0,-1,0), 2, 0.5);

// 		oct->classify(sp, bb, 3, 0);
// 	return 0;
// }

struct IsometricCamera
{
	float scale = 2.0, near = 10.0, far = -10.0;
	bool positive_hor = true, positive_ver = true;
};

void key_callback(GLFWwindow*, int, int, int, int);
void desenharEixos();
glm::mat4 isometric(float, float, float, bool, bool);

int main(void) {
	GLFWwindow* window;

	// Initialize the library
	if (!glfwInit())
		return 1;
<commit_msg>Começando a colocar mais coisas na interface<commit_after>#include "model.h"
#include "helper.h"

#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/ext.hpp>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <iostream>
#include <math.h>

#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
#undef near
#undef far
#endif

// int main(int argc, char const *argv[])
// {
// 		auto oct = std::make_unique<tnw::octree::Tree>();
// 		tnw::octree::BoundingBox bb = tnw::octree::BoundingBox(glm::vec3(-1,-1,1), 2);
// 		tnw::octree::Sphere s(glm::vec3(0,0,0), 0.5);
// 		tnw::octree::SquarePyramid sp(glm::vec3(0,-1,0), 2, 0.5);

// 		oct->classify(sp, bb, 3, 0);
// 	return 0;
// }

//Classe da interface que representa uma cena com vários modelos
class Scene
{
public:
	Scene();
	void addModel(Model*);
	std::vector<Model*> getModels();
	void setSelected(unsigned int);
	void draw();
private:
	//Array de modelos
	std::vector<Model*> models;
	//Modelo selecionado atualmente
	unsigned int selected;
};

Scene::Scene() { models(); }
void Scene::addModel(Model*) { models.push_back(model); }
std::vector<Model*> getModels();

struct IsometricCamera
{
	float scale = 2.0, near = 10.0, far = -10.0;
	bool positive_hor = true, positive_ver = true;
};

void key_callback(GLFWwindow*, int, int, int, int);
void desenharEixos();
glm::mat4 isometric(float, float, float, bool, bool);

int main(void) {
	GLFWwindow* window;

	// Initialize the library
	if (!glfwInit())
		return 1;

{'fraction_non_alphanumeric': 0.18853362734288864, 'fraction_numerical': 0.02793090775450202, 'mean_word_length': 4.803837953091684, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6457938', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1112, 'n_words': 244}