Ejemplo n.º 1
0
 public static PVertex load(Vector3 vert, Function_terrace fun)
 {
     PVertex v= new PVertex();
        // vgo.transform.position = position;
      Debug.Log("loading vertex");
      Debug.Log("x=" + vert.x);
      Debug.Log("y=" + vert.y);
      Debug.Log("z=" + vert.z);
      v.gameObject = fun.createVertexObject(vert);
     return v;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// chargement d'un PVertex depuis un arraylist
 /// </summary>
 /// <param name="al"></param>
 /// <param name="index">index du vertex dans l'arraylist</param>
 /// <param name="fun"></param>
 /// <returns></returns>
 public static PVertex load(ArrayList al,int index, Function_terrace fun)
 {
     PVertex v = new PVertex();
     v.gameObject = fun.createVertexObject(new Vector3((float)al[index], (float)al[index+1], (float)al[index+2]));
     return v;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Chargement d'un PVertex depuis un BinaryReader
 /// </summary>
 /// <param name="buf">BinaryReader de la sauvegarde</param>
 /// <param name="fun">terrace</param>
 /// <returns></returns>
 public static PVertex load(BinaryReader buf,Function_terrace fun)
 {
     PVertex v= new PVertex();
        // vgo.transform.position = position;
     float x=(float)buf.ReadDouble();
      float y=(float)buf.ReadDouble();
      float z=(float)buf.ReadDouble();
      Debug.Log("loading vertex");
      Debug.Log("x=" + x);
      Debug.Log("y=" + y);
      Debug.Log("z=" + z);
      v.gameObject = fun.createVertexObject(new Vector3(x, y, z));
     return v;
 }