void Update() { CallPCL.getMesh(ref meshList, verticesMax); Generate(); if (Input.GetKey(KeyCode.R)) { CallPCL.callRegistration(); } if (Input.GetKey(KeyCode.B)) { CallPCL.callSetBackground(); } if (Input.GetKey(KeyCode.S)) { CallPCL.callSaveScene(); } }
void subThread() { while (true) { CallPCL.kernelUpdate(); Voice.startTiming(); if (turn == 0) { CallPCL.getMesh(ref meshList0, VERTICES_MAX); meshList = meshList0; turn = 1; } else { CallPCL.getMesh(ref meshList1, VERTICES_MAX); meshList = meshList1; turn = 0; } ShowFPS.udpateFrame(); } }