I know you're not the one responsible for the voxel codes' being raw heap-allocated arrays of unsigned chars, and that you're just extending the code that already exists, but it's completely terrible and I die a little inside every time I see it.  These voxel codes really, really, really need to be wrapped up in a class and treated as value types.