Exemplo n.º 1
0
 public void Deserialize(Dictionary <string, object> json, System.IO.BinaryReader br)
 {
     Verticies = (Vector3Array)ObjectFactory.GetObjectFromGuid(json, br, vertices);
     Triangles = (Int3Array)ObjectFactory.GetObjectFromGuid(json, br, triangles);
 }
Exemplo n.º 2
0
 public SurfaceGeometry(List <double[]> vertices, List <int[]> faces) : this()
 {
     origin    = new double[] { 0, 0, 0 };
     Verticies = new Vector3Array(vertices);
     Triangles = new Int3Array(faces);
 }