|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object igeo.io.IObjFileExporter
public class IObjFileExporter
Wavefront OBJ file exporter class.
Field Summary | |
---|---|
protected int |
curve2DNumber
|
protected java.text.NumberFormat |
f
|
static int |
maxColumn
|
protected int |
normalVertexNumber
|
protected int |
objectNumber
|
protected int |
parametricVertexNumber
|
protected int |
textureVertexNumber
|
protected java.util.HashMap<IVertex,int[]> |
vertexMap
|
protected int |
vertexNumber
|
Constructor Summary | |
---|---|
IObjFileExporter()
|
Method Summary | |
---|---|
static void |
checkTrimLoopDirection(java.util.ArrayList<java.util.ArrayList<ITrimCurveI>> trimLoops,
boolean isOuter)
|
void |
init()
|
static boolean |
write(java.io.File file,
IServerI server)
Writing the content of server out to OBJ file. |
void |
write(java.io.PrintStream ps,
IServerI server)
|
static boolean |
write(java.lang.String filename,
IServerI server)
Writing the content of server out to OBJ file. |
void |
writeCurve(java.io.PrintStream ps,
ICurveI curve)
Exports a curve object. |
void |
writeFace(java.io.PrintStream ps,
IFace face)
|
void |
writeMesh(java.io.PrintStream ps,
IMeshI mesh)
Exports a polygon mesh object. |
void |
writePoint(java.io.PrintStream ps,
IVecI point)
Exports a point object. |
void |
writeSurface(java.io.PrintStream ps,
ISurfaceI surface)
Exports a surface object. |
void |
writeTrimCurve(java.io.PrintStream ps,
ITrimCurveI trimCurve)
|
void |
writeVertex(java.io.PrintStream ps,
IVertex vertex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int maxColumn
protected int vertexNumber
protected int parametricVertexNumber
protected int textureVertexNumber
protected int normalVertexNumber
protected int objectNumber
protected int curve2DNumber
protected java.text.NumberFormat f
protected java.util.HashMap<IVertex,int[]> vertexMap
Constructor Detail |
---|
public IObjFileExporter()
Method Detail |
---|
public void init()
public static boolean write(java.lang.String filename, IServerI server)
filename
- An exporting file name.server
- A server interface containing exporting data.
public static boolean write(java.io.File file, IServerI server)
file
- An exporting file object.server
- A server interface containing exporting data.
public void write(java.io.PrintStream ps, IServerI server)
public void writePoint(java.io.PrintStream ps, IVecI point)
ps
- PrintStream to write out.point
- Point object.public void writeCurve(java.io.PrintStream ps, ICurveI curve)
ps
- PrintStream to write out.curve
- Curve object.public static void checkTrimLoopDirection(java.util.ArrayList<java.util.ArrayList<ITrimCurveI>> trimLoops, boolean isOuter)
public void writeSurface(java.io.PrintStream ps, ISurfaceI surface)
ps
- PrintStream to write out.surface
- Surface object.public void writeTrimCurve(java.io.PrintStream ps, ITrimCurveI trimCurve)
public void writeMesh(java.io.PrintStream ps, IMeshI mesh)
ps
- PrintStream to write out.mesh
- Polygon mesh object.public void writeVertex(java.io.PrintStream ps, IVertex vertex)
public void writeFace(java.io.PrintStream ps, IFace face)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |