Also use const arguments, move a null check from the callback to the PBVH function, and reorganice the PBVH code to be in a consistent place in the file and to simplify the logic.
Also use const arguments, move a null check from the callback to the PBVH function, and reorganice the PBVH code to be in a consistent place in the file and to simplify the logic.