예제 #1
0
 /// <summary>
 /// Save the model in binary format.
 /// </summary>
 /// <param name="filename">The name of the file to save.</param>
 public void saveModel(String filename)
 {
     if (entity != null)
     {
         using (MeshSerializer meshSerializer = new MeshSerializer())
         {
             using (MeshPtr mesh = entity.getMesh())
             {
                 meshSerializer.exportMesh(mesh.Value, filename);
             }
         }
     }
 }