Revision 54ce4c6f
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshFile.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
public class MeshFile extends MeshBase |
27 | 27 |
{ |
28 |
private int mBytes; |
|
29 |
|
|
28 | 30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
29 | 31 |
/** |
30 | 32 |
* Read mesh description from a file. |
... | ... | |
35 | 37 |
{ |
36 | 38 |
super(); |
37 | 39 |
|
38 |
read(stream); |
|
40 |
mBytes = read(stream);
|
|
39 | 41 |
} |
40 | 42 |
|
41 | 43 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
59 | 61 |
{ |
60 | 62 |
return new MeshFile(this,deep); |
61 | 63 |
} |
64 |
|
|
65 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
66 |
/** |
|
67 |
* Return number of bytes read from the mesh file. |
|
68 |
*/ |
|
69 |
public int getNumBytes() |
|
70 |
{ |
|
71 |
return mBytes; |
|
72 |
} |
|
62 | 73 |
} |
Also available in: Unified diff
Progress with the MeshFile app.