public class OBJModelIOHandler extends AbstractModelIOHandler
ModelIOHandler
implementation for the OBJ file format.| Constructor and Description |
|---|
OBJModelIOHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handlesType(String type)
Return true if this instance handles 3D model files of the given type.
|
protected TriangleMesh |
readInternal(String type,
InputStream in,
DoublePrecisionContext precision)
Internal class used to read a model.
|
protected void |
writeInternal(BoundarySource3D model,
String type,
OutputStream out)
Internal class used to write a model.
|
read, read, write, writepublic boolean handlesType(String type)
type - type 3D model type, indicated by file extensionprotected TriangleMesh readInternal(String type, InputStream in, DoublePrecisionContext precision) throws IOException
IOExceptions thrown from here are
wrapped in UncheckedIOExceptions.readInternal in class AbstractModelIOHandlertype - model type; guaranteed to be supported by this instancein - input streamprecision - precision context used to construct the modelIOException - if an IO operation failsprotected void writeInternal(BoundarySource3D model, String type, OutputStream out) throws IOException
IOExceptions thrown from here are
wrapped in UncheckedIOExceptions.writeInternal in class AbstractModelIOHandlermodel - model to writetype - model type; guaranteed to be supported by this instanceout - input streamIOException - if an IO operation failsCopyright © 2016–2020 The Apache Software Foundation. All rights reserved.