implemented thresholding in c++ code of marcing cubes and removed threshold.cpp
added helperfunction setRays
added drop=FALSE for vertex from mesh extraction to avoid segfaults in case of lonely vertices
removed obsolete threshold function
removed Voxel.h from includes
updated upstream version and patches and fixed Rsample accordingly