extract explicit mesh with topology information from implicit surfaces with boolean operations, and do surface/volume integrating on them.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
859 B

4 months ago
#pragma once
#include <stack>
3 months ago
#include <vector>
4 months ago
#include <tbb/tbb.h>
#include "blobtree.h"
#include "internal_structs.hpp"
4 months ago
struct blobtree_t {
3 months ago
std::vector<node_t, tbb::tbb_allocator<node_t>> nodes{};
std::vector<uint32_t, tbb::tbb_allocator<uint32_t>> leaf_index{};
std::vector<Eigen::Matrix4d, tbb::tbb_allocator<Eigen::Matrix4d>> transform{};
4 months ago
};
extern std::vector<blobtree_t, tbb::tbb_allocator<blobtree_t>> structures;
extern std::vector<aabb_t, tbb::tbb_allocator<aabb_t>> aabbs;
extern std::vector<primitive_node_t, tbb::tbb_allocator<primitive_node_t>> primitives;
3 months ago
extern std::vector<uint32_t, tbb::tbb_allocator<uint32_t>> counter{};
4 months ago
extern std::stack<uint32_t, std::deque<uint32_t, tbb::tbb_allocator<uint32_t>>> free_structure_list;