Introduced voxel render lib written by Thomas Sneddon .

This commit is contained in:
Zero Fanker 2024-05-20 23:27:42 -04:00
parent 5648034cc5
commit 38ddc52d28
16 changed files with 329 additions and 215 deletions

1
3rdParty/CncVxlRender vendored Submodule

@ -0,0 +1 @@
Subproject commit ebea5a3718f27be0a57e717fafa8cc2afbede0e1

View file

@ -191,5 +191,5 @@ private:
bool m_is_open = false;
int64_t m_p;
const bool m_read_on_open;
size_t m_size;
int64_t m_size;
};

View file

@ -34,7 +34,10 @@ public:
bool is_valid() const
{
const t_tmp_ts_header& h = header();
auto const size = get_size();
if (get_size() < 0) {
return false;
}
auto const size = static_cast<size_t>(get_size());
if (sizeof(t_tmp_ts_header) > size ||
!h.cblocks_x || !h.cblocks_y ||
h.cx != 48 && h.cx != 60 ||