コード例 #1
0
    public void OnPointCreate(XnVHandPointContext cxt) {
      // create a new list
      println("mano" + cxt.getNID());
      addPoint(
          cxt.getNID(),
          new PVector(
              cxt.getPtPosition().getX(), cxt.getPtPosition().getY(), cxt.getPtPosition().getZ()));

      println("OnPointCreate, handId: " + cxt.getNID());
    }
コード例 #2
0
 public void OnPointUpdate(XnVHandPointContext cxt) {
   // println("OnPointUpdate " + cxt.getPtPosition());
   addPoint(
       cxt.getNID(),
       new PVector(
           cxt.getPtPosition().getX(), cxt.getPtPosition().getY(), cxt.getPtPosition().getZ()));
 }