Package net.imglib2.mesh.io.stl
Class STLMeshIO
- java.lang.Object
-
- net.imglib2.mesh.io.stl.STLMeshIO
-
public final class STLMeshIO extends Object
Routines for reading and writing STL files.- Author:
- Richard Domander (Royal Veterinary College, London), Curtis Rueden
-
-
Field Summary
Fields Modifier and Type Field Description static intCOUNT_BYTESstatic intFACET_BYTESstatic intFACET_STARTstatic StringHEADERstatic intHEADER_BYTES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Meshopen(String source)static voidread(Mesh mesh, byte[] data)static voidread(Mesh mesh, File stlFile)static voidsave(Mesh data, String destination)static byte[]write(Mesh mesh)Writes the facets into a byte[] that can then be saved into a file
-
-
-
Field Detail
-
HEADER_BYTES
public static final int HEADER_BYTES
- See Also:
- Constant Field Values
-
HEADER
public static final String HEADER
-
COUNT_BYTES
public static final int COUNT_BYTES
- See Also:
- Constant Field Values
-
FACET_START
public static final int FACET_START
- See Also:
- Constant Field Values
-
FACET_BYTES
public static final int FACET_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public static final void read(Mesh mesh, byte[] data)
-
write
public static final byte[] write(Mesh mesh)
Writes the facets into a byte[] that can then be saved into a file
-
read
public static final void read(Mesh mesh, File stlFile) throws IOException
- Throws:
IOException
-
open
public static final Mesh open(String source) throws IOException
- Throws:
IOException
-
save
public static final void save(Mesh data, String destination) throws IOException
- Throws:
IOException
-
-