Cache a Z table for layer range search

This commit is contained in:
Alessandro Ranellucci 2013-06-23 17:07:12 +02:00
parent 37105e8237
commit f3a9d41c70
6 changed files with 55 additions and 19 deletions

View file

@ -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