Fast inclusion and self-intersection tests for triangle meshes in CUDA