Pass more paramters into CUDA
Fix hasCuttingPLane logic