admesh refactoring: Move the hashing structure out of stl_file

This commit is contained in:
bubnikv 2019-06-10 16:53:08 +02:00
parent 025f86ca3f
commit 40b27e8332
6 changed files with 459 additions and 611 deletions

View file

@ -50,8 +50,6 @@ void stl_open(stl_file *stl, const char *file)
void stl_initialize(stl_file *stl)
{
stl->fp = nullptr;
stl->tail = nullptr;
stl->M = 0;
stl->error = 0;
stl->facet_start.clear();
stl->neighbors_start.clear();
@ -64,8 +62,6 @@ void stl_initialize(stl_file *stl)
void stl_close(stl_file *stl)
{
assert(stl->fp == nullptr);
assert(stl->heads.empty());
assert(stl->tail == nullptr);
stl_initialize(stl);
}