Project

General

Profile

« Previous | Next » 

Revision bc2ab8c5

Added by Leszek Koltunski almost 4 years ago

Reading a mesh from the .dmesh file might work now. Checked on two small meshes.

View differences:

src/main/java/org/distorted/library/mesh/MeshFile.java
19 19

  
20 20
package org.distorted.library.mesh;
21 21

  
22
import java.io.IOException;
23
import java.nio.channels.FileChannel;
22
import java.io.DataInputStream;
24 23

  
25 24
///////////////////////////////////////////////////////////////////////////////////////////////////
26 25

  
......
32 31
 * <p>
33 32
 * File format: as written by MeshBase.write().
34 33
 */
35
  public MeshFile(FileChannel file)
34
  public MeshFile(DataInputStream stream)
36 35
    {
37 36
    super();
38 37

  
39
    try
40
      {
41
      read(file);
42
      }
43
    catch(IOException ex)
44
      {
45
      android.util.Log.e("MeshFile", "exception reading file: "+ex.toString());
46
      }
38
    read(stream);
47 39
    }
48 40

  
49 41
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff