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
CustomMesh es; |
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
IOException
public static void save(Map<String,CustomMesh> meshes, String mtlFileName, Writer objWriter, Writer mtlWriter) throws IOException
CustomMesh
es;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.IOException
public static boolean saveToFile(File f, String data) throws IOException
IOException
Copyright © 2015–2021 Fiji. All rights reserved.