replaced staticgrid with spatial hashtable in trimesh_project.cpp to avoid occasional segfault