mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Cache a Z table for layer range search
This commit is contained in:
parent
37105e8237
commit
f3a9d41c70
6 changed files with 55 additions and 19 deletions
|
@ -0,0 +1,21 @@
|
|||
#ifndef _myinit_h_
|
||||
#define _myinit_h_
|
||||
|
||||
#include <vector>
|
||||
|
||||
typedef std::vector<unsigned int> Ztable2;
|
||||
|
||||
class ZTable
|
||||
{
|
||||
public:
|
||||
ZTable(std::vector<unsigned int>* z_array);
|
||||
std::vector<unsigned int> get_range(unsigned int min_z, unsigned int max_z);
|
||||
std::vector<unsigned int> z;
|
||||
};
|
||||
|
||||
ZTable::ZTable(std::vector<unsigned int>* ztable) :
|
||||
z(*ztable)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue