|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.turtle3d.exporter.ObjExporter
public class ObjExporter
Wavefront .obj file format exporter.
Exports geometry, uv coordinates and materials. Does not export normals.
Constructor Summary | |
---|---|
ObjExporter()
|
Method Summary | |
---|---|
void |
add(javax.media.j3d.BranchGroup branchGroup)
Adds objects from branch. |
void |
addShape3D(javax.media.j3d.Shape3D shape3D,
javax.vecmath.Matrix4f transform)
Adds a Shape3D object for export. |
void |
export(java.lang.String path,
java.lang.String fileName)
Export added objects to wavefront format (.obj & .mtl) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjExporter()
Method Detail |
---|
public void add(javax.media.j3d.BranchGroup branchGroup)
Adds objects from branch.
Works under assumption, that branchGroup has only TransformGroup objects as children. Also only first child of those TransformGroups is saved, rest is ignored.
branchGroup
- public void export(java.lang.String path, java.lang.String fileName) throws java.io.IOException
path
- Path to a directoryfileName
- File name, without extension
java.io.IOException
public void addShape3D(javax.media.j3d.Shape3D shape3D, javax.vecmath.Matrix4f transform)
shape3D
- transform
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |