Package net.imglib2.mesh.io.ply
Class PLYMeshIO
- java.lang.Object
-
- net.imglib2.mesh.io.ply.PLYMeshIO
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]getNVerticesFaces(String source)Returns the number of vertices and faces declared in this file.static BufferMeshopen(InputStream plyIS)static BufferMeshopen(String source)static voidread(File plyFile, Mesh mesh)static voidread(InputStream plyIS, Mesh mesh)static voidsave(Mesh data, String destination)static byte[]writeAscii(Mesh mesh)static byte[]writeBinary(Mesh mesh)
-
-
-
Method Detail
-
open
public static final BufferMesh open(String source) throws IOException
- Throws:
IOException
-
save
public static final void save(Mesh data, String destination) throws IOException
- Throws:
IOException
-
read
public static final void read(File plyFile, Mesh mesh) throws IOException
- Throws:
IOException
-
read
public static final void read(InputStream plyIS, Mesh mesh) throws IOException
- Throws:
IOException
-
open
public static final BufferMesh open(InputStream plyIS) throws IOException
- Throws:
IOException
-
writeBinary
public static final byte[] writeBinary(Mesh mesh)
-
writeAscii
public static final byte[] writeAscii(Mesh mesh) throws IOException
- Throws:
IOException
-
getNVerticesFaces
public static final int[] getNVerticesFaces(String source) throws IOException
Returns the number of vertices and faces declared in this file.- Parameters:
source- the path to the file.- Returns:
- a new
int[]array with 2 elements:- the number of vertices.
- the number of faces.
- Throws:
IOException
-
-