mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
TriangleSelector: Separated frontend/backend, support of multiple volumes, etc.
This commit is contained in:
parent
b250c08ec9
commit
6baff45759
7 changed files with 856 additions and 855 deletions
|
@ -39,6 +39,7 @@ class ModelVolume;
|
|||
class ModelWipeTower;
|
||||
class Print;
|
||||
class SLAPrint;
|
||||
class TriangleSelector;
|
||||
|
||||
namespace UndoRedo {
|
||||
class StackImpl;
|
||||
|
@ -404,8 +405,9 @@ class FacetsAnnotation {
|
|||
public:
|
||||
using ClockType = std::chrono::steady_clock;
|
||||
|
||||
const std::map<int, std::vector<bool>>& get_data() const { return m_data; }
|
||||
void set(const TriangleSelector& selector);
|
||||
std::vector<int> get_facets(FacetSupportType type) const;
|
||||
void set_facet(int idx, FacetSupportType type);
|
||||
void clear();
|
||||
|
||||
ClockType::time_point get_timestamp() const { return timestamp; }
|
||||
|
@ -419,7 +421,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
std::map<int, FacetSupportType> m_data;
|
||||
std::map<int, std::vector<bool>> m_data;
|
||||
|
||||
ClockType::time_point timestamp;
|
||||
void update_timestamp() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue