Commit 4b9199d3a440e7db12fa00fbba5bede6760e779d

Authored by Pavel Govyadinov
1 parent a8b50fc1

added the voxel size to image stack and fixed multiple materials in the obj class

Showing 2 changed files with 2 additions and 1 deletions   Show diff stats
stim/grids/image_stack.h
... ... @@ -20,7 +20,7 @@ protected:
20 20 //using stim::grid<T, 4>::S;
21 21 using stim::grid<T, 4, F>::R;
22 22 using stim::grid<T, 4, F>::ptr;
23   - using stim::grid<T, 4, F>::read;
  23 + using stim::grid<T, 4, F>::S;
24 24  
25 25 public:
26 26 //default constructor
... ...
stim/visualization/obj.h
... ... @@ -428,6 +428,7 @@ public:
428 428 Mf.push_back(F.size()); //start the material at the current face index
429 429 M.push_back(current_material); //push the current material
430 430 current_material.name = ""; //reset the name of the current material
  431 + new_material = false;
431 432 }
432 433 current_type = t;
433 434 }
... ...