예제 #1
0
 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();
     }
 }
예제 #2
0
 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();
     }
 }