public class WavefrontExporter extends Object
| Constructor and Description |
|---|
WavefrontExporter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
save(Map<String,CustomMesh> meshes,
String objFile) |
static void |
save(Map<String,CustomMesh> meshes,
String mtlFileName,
Writer objWriter,
Writer mtlWriter)
Write the given collection of
CustomMeshes; |
static boolean |
saveToFile(File f,
String data)
Utility method to encode text data in 8859_1.
|
public static void save(Map<String,CustomMesh> meshes, String objFile) throws IOException
IOExceptionpublic static void save(Map<String,CustomMesh> meshes, String mtlFileName, Writer objWriter, Writer mtlWriter) throws IOException
CustomMeshes;meshes - maps a name to a CustomMesh. The name is used to
set the group name ('g') in the obj file.mtlFileName - name of the material file, which is used to store in the
obj-file.objWriter - Writer for the obj filemtlWriter - Writer for the material file.IOExceptionpublic static boolean saveToFile(File f, String data) throws IOException
IOExceptionCopyright © 2015–2021 Fiji. All rights reserved.