Currently, each voxels requires to be passed a load of variables from higher classes in order to, for instance, determine its type.
Issue
It is a big hassle adding another argument to any method because of this. This is only further complicated by all the recursive functions in the Voxel class.
Proposed change
Whenever possible, constant arguments required for voxel methods should be saved as static members in the voxel class. This way all voxel instances have access to those variables and they only need to be saved in one central location. In order to avoid issues, these variables should be reset before the calculation ends.
Current status
Currently, each voxels requires to be passed a load of variables from higher classes in order to, for instance, determine its type.
Issue
It is a big hassle adding another argument to any method because of this. This is only further complicated by all the recursive functions in the Voxel class.
Proposed change
Whenever possible, constant arguments required for voxel methods should be saved as static members in the voxel class. This way all voxel instances have access to those variables and they only need to be saved in one central location. In order to avoid issues, these variables should be reset before the calculation ends.