public class STLMeshIO extends AbstractIOPlugin<Mesh> implements MeshIOPlugin
Modifier and Type | Field and Description |
---|---|
static int |
COUNT_BYTES |
static int |
FACET_BYTES |
static int |
FACET_START |
static String |
HEADER |
static int |
HEADER_BYTES |
Constructor and Description |
---|
STLMeshIO() |
Modifier and Type | Method and Description |
---|---|
Mesh |
open(String source) |
void |
read(Mesh mesh,
byte[] data) |
void |
read(Mesh mesh,
File stlFile) |
void |
save(Mesh data,
String destination) |
boolean |
supports(File file) |
boolean |
supportsOpen(String source) |
boolean |
supportsSave(String source) |
byte[] |
write(Mesh mesh)
Writes the facets into a byte[] that can then be saved into a file
|
supports
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataType
getType, open, save, supports, supportsOpen, supportsSave, supportsSave, supportsSave
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public static final int HEADER_BYTES
public static final String HEADER
public static final int COUNT_BYTES
public static final int FACET_START
public static final int FACET_BYTES
public void read(Mesh mesh, byte[] data)
public byte[] write(Mesh mesh)
public void read(Mesh mesh, File stlFile) throws IOException
IOException
public boolean supports(File file)
public boolean supportsOpen(String source)
supportsOpen
in interface IOPlugin<Mesh>
supportsOpen
in class AbstractIOPlugin<Mesh>
public boolean supportsSave(String source)
supportsSave
in interface IOPlugin<Mesh>
supportsSave
in class AbstractIOPlugin<Mesh>
public Mesh open(String source) throws IOException
open
in interface IOPlugin<Mesh>
open
in class AbstractIOPlugin<Mesh>
IOException
public void save(Mesh data, String destination) throws IOException
save
in interface IOPlugin<Mesh>
save
in class AbstractIOPlugin<Mesh>
IOException
Copyright © 2014–2022 ImageJ. All rights reserved.